diff --git a/src/vs/editor/common/config/config.ts b/src/vs/editor/common/config/config.ts index 562c0e03275b5..b448914322312 100644 --- a/src/vs/editor/common/config/config.ts +++ b/src/vs/editor/common/config/config.ts @@ -405,6 +405,6 @@ KeybindingsRegistry.registerCommandDesc({ id: 'editor.action.selectAll', handler: selectAll, weight: KeybindingsRegistry.WEIGHT.editorCore(), - when: null, + when: KbExpr.has(editorCommon.KEYBINDING_CONTEXT_EDITOR_TEXT_FOCUS), primary: KeyMod.CtrlCmd | KeyCode.KEY_A });