From a13c675cb35d231d4afb1317c88b648d80b5657d Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Fri, 27 Sep 2024 12:57:01 +0800 Subject: [PATCH] fix(vscode): retain context when chat panel is hidden (#3207) --- clients/vscode/src/Commands.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clients/vscode/src/Commands.ts b/clients/vscode/src/Commands.ts index a2f323497e8f..8e07ba78bf96 100644 --- a/clients/vscode/src/Commands.ts +++ b/clients/vscode/src/Commands.ts @@ -280,7 +280,9 @@ export class Commands { this.sendMessageToChatPanel("Generate a unit test for the selected code:"); }, "chat.createPanel": async () => { - const panel = window.createWebviewPanel("tabby.chatView", "Tabby", ViewColumn.One, {}); + const panel = window.createWebviewPanel("tabby.chatView", "Tabby", ViewColumn.One, { + retainContextWhenHidden: true, + }); this.chatPanelViewProvider.resolveWebviewView(panel); },