From e108634615bf905fb86e3214fdaa26f5dc947911 Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Wed, 29 May 2024 14:04:07 +0200 Subject: [PATCH] closing out inline chat while speech is going does not stop audio (fix #213709) --- .../contrib/inlineChat/browser/inlineChatZoneWidget.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.ts b/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.ts index 3b857169adea2..2002f06191313 100644 --- a/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.ts +++ b/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.ts @@ -147,6 +147,7 @@ export class InlineChatZoneWidget extends ZoneWidget { super.show(position, this._computeHeightInLines()); this._setWidgetMargins(position); + this.widget.chatWidget.setVisible(true); this.widget.focus(); scrollState.restore(this.editor); @@ -209,6 +210,7 @@ export class InlineChatZoneWidget extends ZoneWidget { this.container!.classList.remove('inside-selection'); this._ctxCursorPosition.reset(); this.widget.reset(); + this.widget.chatWidget.setVisible(false); super.hide(); aria.status(localize('inlineChatClosed', 'Closed inline chat widget')); }