Skip to content

Commit

Permalink
Restrict keybindings to supported files
Browse files Browse the repository at this point in the history
  • Loading branch information
csoren committed Sep 23, 2024
1 parent e5b0022 commit b216995
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit b216995

Please sign in to comment.