New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keybinding customization - only shows the keybindings of activated extensions #23356
Comments
@jrieken Any idea why the command registry is not having the commands until activation? |
@sandy081 The keybinding comes in right on startup (set brk-point here: https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/services/keybinding/electron-browser/keybindingService.ts#L482). That binds the identifier of an existing or future command to some key/keycombination. The command itself, the id->function-thing, comes in when someone called |
@jrieken Sorry if I am not clear. It's not about keybindings.. its about commands with no keybindings. When a user open keybindings editor, he does not see those commands without keybindings from an extension which is not active yet. This will confuse the user. Since command are registered descriptively also, is not it possible to get the information from there? I understand that Command registry is a registry of |
Is the |
But there is a catch that this will not give me command description that can tell me that command takes args or not.. Currently I am excluding all commands with args from Keybindings editor. Also is CommandsRegistry.getCommands() is a sub set of MenuRegistry.getCommands() ? |
CommandRegistry holds commands which is a
|
Even though |
Then the same applies to the |
The
vscode-tslint
extension is contributing key bindings. However, these keybindings are only available for customization in the editor, once the extension is activated and the user has opened a TypeScript file.The user should be able to customize keybindings independent from whether an extension is activated or not.
The text was updated successfully, but these errors were encountered: