add focus input command to f1 (#183438)

https://github.com/microsoft/vscode-copilot-release/issues/81
This commit is contained in:
Johannes Rieken 2023-05-25 16:50:00 +02:00 committed by GitHub
parent fdf68021ff
commit 97762b52c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -222,7 +222,8 @@ export class FocusInteractiveEditor extends EditorAction2 {
constructor() {
super({
id: 'interactiveEditor.focus',
title: localize('focus', 'Focus'),
title: { value: localize('focus', 'Focus Input'), original: 'Focus Input' },
f1: true,
category: AbstractInteractiveEditorAction.category,
precondition: ContextKeyExpr.and(EditorContextKeys.editorTextFocus, CTX_INTERACTIVE_EDITOR_VISIBLE, CTX_INTERACTIVE_EDITOR_FOCUSED.negate(), CONTEXT_ACCESSIBILITY_MODE_ENABLED.negate()),
keybinding: [{