Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
Only allow test commands to run in active Ruby editors
Browse files Browse the repository at this point in the history
  • Loading branch information
paracycle committed Jul 13, 2023
1 parent 37e2081 commit 0fd9eff
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,18 @@
},
{
"command": "rubyLsp.runTest",
"title": "Ruby LSP: Run current test"
"title": "Ruby LSP: Run current test",
"when": "editorActive && editorLangId == ruby"
},
{
"command": "rubyLsp.runTestInTerminal",
"title": "Ruby LSP: Run current test in terminal"
"title": "Ruby LSP: Run current test in terminal",
"when": "editorActive && editorLangId == ruby"
},
{
"command": "rubyLsp.debugTest",
"title": "Ruby LSP: Debug current test"
"title": "Ruby LSP: Debug current test",
"when": "editorActive && editorLangId == ruby"
}
],
"configuration": {
Expand Down

0 comments on commit 0fd9eff

Please sign in to comment.