Update ruby VSCode extensions for debugging (#20816)

The 'rebornix.Ruby' extension is deprecated. I replaced with the
'Shopify.ruby-lsp' extension since VSCode's Ruby docs pointed
users to ruby-lsp, see https://code.visualstudio.com/docs/languages/ruby.
This commit is contained in:
Meredith 2024-04-08 08:14:15 -04:00 committed by GitHub
parent 7cc3860366
commit ef0879f4aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 45 deletions

View file

@ -13,5 +13,6 @@
"waderyan.nodejs-extension-pack",
"koichisasada.vscode-rdbg",
"ms-edgedevtools.vscode-edge-devtools",
"shopify.ruby-lsp",
]
}

42
.vscode/launch.json vendored
View file

@ -26,51 +26,21 @@
"webRoot": "${workspaceFolder}/app/javascript/packs"
},
{
"name": "Debug Local File",
"type": "Ruby",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/main.rb"
},
{
"name": "Listen for rdebug-ide",
"type": "Ruby",
"request": "attach",
"cwd": "${workspaceRoot}",
"remoteHost": "127.0.0.1",
"remotePort": "1234",
"remoteWorkspaceRoot": "${workspaceRoot}"
},
{
"name": "Rails server",
"type": "Ruby",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/bin/rails",
"args": ["server"]
"name": "Attach to Existing Server",
"type": "ruby_lsp",
"request": "attach"
},
{
"name": "RSpec - all",
"type": "Ruby",
"type": "ruby_lsp",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/bin/rspec",
"args": ["-I", "${workspaceRoot}"]
},
{
"name": "RSpec - active spec file only",
"type": "Ruby",
"type": "ruby_lsp",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/bin/rspec",
"args": ["-I", "${workspaceRoot}", "${file}"]
},
{
"name": "Cucumber",
"type": "Ruby",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/bin/cucumber"
"program": "${workspaceRoot}/bin/rspec ${file}",
},
{
"name": "Jest Current File",

11
.vscode/settings.json vendored
View file

@ -1,11 +1,4 @@
{
"ruby.useBundler": true,
"ruby.useLanguageServer": true,
"ruby.lint": {
"rubocop": {
"useBundler": true
}
},
"ruby.format": "rubocop",
"ruby.intellisense": "rubyLocate"
"rubyLsp.rubyVersionManager": "auto",
"rubyLsp.formatter": "rubocop",
}