Skip to content

Commit

Permalink
fix: retain the elpi tracer context when hidden
Browse files Browse the repository at this point in the history
This should stop the bug where the tracer view gets reset each time
a user changes the panel
  • Loading branch information
rtetley committed Sep 6, 2024
1 parent cd2b87c commit 675337e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ export function activate(context: vscode.ExtensionContext) {
const tracer = new provider.TraceProvider(context.extensionUri);

context.subscriptions.push(
vscode.window.registerWebviewViewProvider(provider.TraceProvider.viewType, tracer));
vscode.window.registerWebviewViewProvider(provider.TraceProvider.viewType, tracer, {
webviewOptions: {retainContextWhenHidden: true}
}));

context.subscriptions.push(
vscode.commands.registerCommand('elpi.open', () => {
Expand Down

0 comments on commit 675337e

Please sign in to comment.