diff --git a/package.json b/package.json index 17778a49..d69c6ff9 100644 --- a/package.json +++ b/package.json @@ -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": {