Skip to content

Commit bfc8c4b

Browse files
authored
Restrict keybindings to supported files (#690)
1 parent e5b0022 commit bfc8c4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,12 @@
291291
"command": "clangd.switchheadersource",
292292
"key": "Alt+o",
293293
"mac": "Alt+cmd+o",
294-
"when": "editorTextFocus"
294+
"when": "(resourceLangId == c || resourceLangId == cpp || resourceLangId == cuda-cpp || resourceLangId == objective-c || resourceLangId == objective-cpp) && editorTextFocus"
295295
},
296296
{
297297
"command": "clangd.typeHierarchy",
298298
"key": "Shift+Alt+t",
299-
"when": "editorTextFocus"
299+
"when": "(resourceLangId == cpp || resourceLangId == cuda-cpp || resourceLangId == objective-c || resourceLangId == objective-cpp) && editorTextFocus"
300300
}
301301
],
302302
"menus": {

0 commit comments

Comments
 (0)