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:
parent
7cc3860366
commit
ef0879f4aa
3 changed files with 9 additions and 45 deletions
1
.vscode/extensions.json
vendored
1
.vscode/extensions.json
vendored
|
|
@ -13,5 +13,6 @@
|
|||
"waderyan.nodejs-extension-pack",
|
||||
"koichisasada.vscode-rdbg",
|
||||
"ms-edgedevtools.vscode-edge-devtools",
|
||||
"shopify.ruby-lsp",
|
||||
]
|
||||
}
|
||||
|
|
|
|||
42
.vscode/launch.json
vendored
42
.vscode/launch.json
vendored
|
|
@ -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
11
.vscode/settings.json
vendored
|
|
@ -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",
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue