File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/vs/workbench/contrib/terminalContrib/chat/browser Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -96,11 +96,14 @@ export class TerminalChatWidget extends Disposable {
96
96
this . _container . appendChild ( this . _inlineChatWidget . domNode ) ;
97
97
98
98
this . _focusTracker = this . _register ( trackFocus ( this . _container ) ) ;
99
+ this . _register ( this . _focusTracker . onDidFocus ( ( ) => this . _focusedContextKey . set ( true ) ) ) ;
99
100
this . _register ( this . _focusTracker . onDidBlur ( ( ) => {
101
+ this . _focusedContextKey . set ( false ) ;
100
102
if ( ! this . inlineChatWidget . responseContent ) {
101
103
this . hide ( ) ;
102
104
}
103
105
} ) ) ;
106
+
104
107
this . hide ( ) ;
105
108
}
106
109
@@ -150,7 +153,6 @@ export class TerminalChatWidget extends Disposable {
150
153
reveal ( ) : void {
151
154
this . _doLayout ( this . _inlineChatWidget . contentHeight ) ;
152
155
this . _container . classList . remove ( 'hide' ) ;
153
- this . _focusedContextKey . set ( true ) ;
154
156
this . _visibleContextKey . set ( true ) ;
155
157
this . _inlineChatWidget . focus ( ) ;
156
158
this . _instance . scrollToBottom ( ) ;
@@ -199,7 +201,6 @@ export class TerminalChatWidget extends Disposable {
199
201
this . _inlineChatWidget . updateChatMessage ( undefined ) ;
200
202
this . _inlineChatWidget . updateProgress ( false ) ;
201
203
this . _inlineChatWidget . updateToolbar ( false ) ;
202
- this . _focusedContextKey . set ( false ) ;
203
204
this . _visibleContextKey . set ( false ) ;
204
205
this . _inlineChatWidget . value = '' ;
205
206
this . _instance . focus ( ) ;
You can’t perform that action at this time.
0 commit comments