From c8d11641e2939c31db929213c59f17e39418bafc 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 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": {