diff --git a/package.json b/package.json index 5ed7bf3f..9e7b498d 100644 --- a/package.json +++ b/package.json @@ -56,15 +56,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": {