Skip to content

Commit 508e038

Browse files
authored
Merge pull request microsoft#208328 from microsoft/tyriar/208309
Don't add to already disposed store
2 parents 8b943b4 + 03aaf82 commit 508e038

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)