Skip to content

Commit 03aaf82

Browse files
committed
Don't add to already disposed store
Fixes microsoft#208309
1 parent 2efb6a9 commit 03aaf82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ export class TerminalChatController extends Disposable implements ITerminalContr
237237
this._model.value?.cancelRequest(this._currentRequest);
238238
}
239239
this._model.clear();
240-
this._chatWidget?.value.hide();
241-
this._chatWidget?.value.setValue(undefined);
240+
this._chatWidget?.rawValue?.hide();
241+
this._chatWidget?.rawValue?.setValue(undefined);
242242
this._responseContainsCodeBlockContextKey.reset();
243243
this._sessionResponseVoteContextKey.reset();
244244
this._requestActiveContextKey.reset();
@@ -389,7 +389,7 @@ export class TerminalChatController extends Disposable implements ITerminalContr
389389
} else if (!model) {
390390
widget.focusInput();
391391
}
392-
this._chatWidget?.value.hide();
392+
this._chatWidget?.rawValue?.hide();
393393
}
394394
}
395395

0 commit comments

Comments
 (0)