Skip to content

Commit

Permalink
fix(vscode): retain context when chat panel is hidden (#3207)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys authored Sep 27, 2024
1 parent dc23360 commit a13c675
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clients/vscode/src/Commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
Expand Down

0 comments on commit a13c675

Please sign in to comment.