File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/vs/workbench/contrib/terminalContrib/chat/browser Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,10 @@ registerActiveXtermAction({
60
60
keybinding : {
61
61
primary : KeyCode . Escape ,
62
62
secondary : [ KeyMod . Shift | KeyCode . Escape ] ,
63
- when : ContextKeyExpr . and ( TerminalChatContextKeys . focused , TerminalChatContextKeys . visible ) ,
63
+ when : ContextKeyExpr . and (
64
+ ContextKeyExpr . or ( TerminalContextKeys . focus , TerminalChatContextKeys . focused ) ,
65
+ TerminalChatContextKeys . visible
66
+ ) ,
64
67
weight : KeybindingWeight . WorkbenchContrib ,
65
68
} ,
66
69
icon : Codicon . close ,
@@ -70,9 +73,7 @@ registerActiveXtermAction({
70
73
order : 2
71
74
} ,
72
75
f1 : true ,
73
- precondition : ContextKeyExpr . and (
74
- ContextKeyExpr . and ( TerminalChatContextKeys . focused , TerminalChatContextKeys . visible )
75
- ) ,
76
+ precondition : TerminalChatContextKeys . visible ,
76
77
run : ( _xterm , _accessor , activeInstance ) => {
77
78
if ( isDetachedTerminalInstance ( activeInstance ) ) {
78
79
return ;
You can’t perform that action at this time.
0 commit comments