From 0fd9eff38d3480cec674bbe4a3e0a06b1c8e6acd Mon Sep 17 00:00:00 2001 From: Ufuk Kayserilioglu Date: Fri, 14 Jul 2023 01:02:02 +0300 Subject: [PATCH] Only allow test commands to run in active Ruby editors --- package.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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": {