From 2b35e1e6d88f1ce073683991d1eff5284a32690f Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Mon, 6 Nov 2023 12:52:58 +0100 Subject: [PATCH] Don't dispose diff zone widgets when hiding them. (#197528) fixes https://github.com/microsoft/vscode-copilot/issues/2617 fixes https://github.com/microsoft/vscode-copilot/issues/2627 --- .../workbench/contrib/inlineChat/browser/inlineChatStrategies.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.ts b/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.ts index 31359f738a28e..2802f53be3ce8 100644 --- a/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.ts +++ b/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.ts @@ -421,7 +421,6 @@ export class LivePreviewStrategy extends LiveStrategy { if (!diff || diff.changes.length === 0) { for (const zone of this._diffZonePool) { zone.hide(); - zone.dispose(); } return; }