add `when` for terminal chat keybinding (#236480)

fix #236474
pull/236487/head
Megan Rogge 2024-12-18 09:10:16 -06:00 committed by GitHub
parent 3a4f4164c7
commit a02cb4218a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -224,7 +224,8 @@ registerActiveXtermAction({
),
keybinding: {
weight: KeybindingWeight.WorkbenchContrib,
primary: KeyMod.CtrlCmd | KeyCode.KeyR
primary: KeyMod.CtrlCmd | KeyCode.KeyR,
when: TerminalChatContextKeys.focused
},
menu: {
id: MENU_TERMINAL_CHAT_WIDGET_STATUS,