-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.Check the Milestone for the release in which the fix is or will be available.
Description
cpptools has the Alt+O keybinding for 'Switch Header/Source' command.
angular2-switcher has the Alt+O keybinding for 'Open Corresponding template(html) File'.
Having both these extensions makes only one keybinding to work.
Currently, cpptools has "editorTextFocus" for the "when" keybinding property, while angular2-switcher does not have the property set at all.
The following overrides in the user keybindings.json seems to fix this for me:
{
"key": "alt+o",
"command": "extension.switchTemplate",
"when": "editorTextFocus && editorLangId=='typescript'"
},
{
"key": "alt+o",
"command": "C_Cpp.SwitchHeaderSource",
"when": "editorTextFocus && editorLangId=='cpp'"
}
Is it possible/reasonable to have this (or maybe some better) value for the "when" keybinding property out-of-the-box, to reduce the probability of keybindings conflicts with other extensions?
Metadata
Metadata
Assignees
Labels
Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.Check the Milestone for the release in which the fix is or will be available.