Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
keybinding: this.keyCode(keybinding).toString(),
context: EditorKeybindingContexts.editorTextFocus,
});
} else {
// FIXME support chord keybindings properly, KeyCode does not allow it right now
}
}
}
// `Select All` is not an editor action just like everything else.
const selectAllCommand = this.commands.validate(MonacoCommands.SELECTION_SELECT_ALL);
if (selectAllCommand) {
registry.registerKeybinding({
command: selectAllCommand,
keybinding: "ctrlcmd+a",
context: EditorKeybindingContexts.editorTextFocus,
});
}
}
});
keybindings.registerKeybinding({
command: DebugCommands.CONTINUE.id,
keybinding: 'f5',
context: DebugKeybindingContexts.inDebugMode
});
keybindings.registerKeybinding({
command: DebugCommands.PAUSE.id,
keybinding: 'f6',
context: DebugKeybindingContexts.inDebugMode
});
keybindings.registerKeybinding({
command: DebugCommands.TOGGLE_BREAKPOINT.id,
keybinding: 'f9',
context: EditorKeybindingContexts.editorTextFocus
});
keybindings.registerKeybinding({
command: DebugBreakpointWidgetCommands.ACCEPT.id,
keybinding: 'enter',
context: DebugKeybindingContexts.breakpointWidgetInputFocus
});
keybindings.registerKeybinding({
command: DebugBreakpointWidgetCommands.CLOSE.id,
keybinding: 'esc',
context: DebugKeybindingContexts.breakpointWidgetInputStrictFocus
});
}
registerKeybindings(keybindings: KeybindingRegistry): void {
keybindings.registerKeybinding({
command: BlameCommands.TOGGLE_GIT_ANNOTATIONS.id,
context: EditorKeybindingContexts.editorTextFocus,
keybinding: 'alt+b'
});
keybindings.registerKeybinding({
command: BlameCommands.CLEAR_GIT_ANNOTATIONS.id,
context: BlameAnnotationsKeybindingContext.showsBlameAnnotations,
keybinding: 'esc'
});
}