From b216995f8b49546209f490b213bffc12029b2eef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carsten=20Elton=20S=C3=B8rensen?= Date: Mon, 23 Sep 2024 17:22:43 +0200 Subject: [PATCH] Restrict keybindings to supported files --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ab47ae4..3287d4a 100644 --- a/package.json +++ b/package.json @@ -291,12 +291,12 @@ "command": "clangd.switchheadersource", "key": "Alt+o", "mac": "Alt+cmd+o", - "when": "editorTextFocus" + "when": "(resourceLangId == c || resourceLangId == cpp || resourceLangId == cuda-cpp || resourceLangId == objective-c || resourceLangId == objective-cpp) && editorTextFocus" }, { "command": "clangd.typeHierarchy", "key": "Shift+Alt+t", - "when": "editorTextFocus" + "when": "(resourceLangId == c || resourceLangId == cpp || resourceLangId == cuda-cpp || resourceLangId == objective-c || resourceLangId == objective-cpp) && editorTextFocus" } ], "menus": {