Skip to content

Commit

Permalink
Removed getScopedKeybindingsForCommand (no references)
Browse files Browse the repository at this point in the history
fixes #8270

Signed-off-by: Jonas Helming <[email protected]>
  • Loading branch information
JonasHelming committed Jul 31, 2020
1 parent e99e386 commit 3615f93
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions packages/core/src/browser/keybinding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,27 +399,6 @@ export class KeybindingRegistry {
return result;
}

/**
* Returns a list of keybindings for a command in a specific scope
* @param scope specific scope to look for
* @param commandId unique id of the command
*/
getScopedKeybindingsForCommand(scope: KeybindingScope, commandId: string): Keybinding[] {
const result: Keybinding[] = [];

if (scope >= KeybindingScope.END) {
return [];
}

this.keymaps[scope].forEach(binding => {
const command = this.commandRegistry.getCommand(binding.command);
if (command && command.id === commandId) {
result.push(binding);
}
});
return result;
}

protected isActive(binding: Keybinding): boolean {
/* Pseudo commands like "passthrough" are always active (and not found
in the command registry). */
Expand Down

0 comments on commit 3615f93

Please sign in to comment.