Skip to content

Commit

Permalink
Preserving the webview content
Browse files Browse the repository at this point in the history
  • Loading branch information
codemakerai-dev committed Jun 25, 2024
1 parent c102447 commit cc35a36
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,11 @@ function registerAutoCorrection(context: vscode.ExtensionContext, codemakerServi

function registerAssistantChatView(context: vscode.ExtensionContext, codemakerService: CodemakerService) {
context.subscriptions.push(
vscode.window.registerWebviewViewProvider("assistantChatView", assistantChatViewProvider)
vscode.window.registerWebviewViewProvider("assistantChatView", assistantChatViewProvider, {
webviewOptions: {
retainContextWhenHidden: true,
}
})
);
}

Expand Down

0 comments on commit cc35a36

Please sign in to comment.