Skip to content

Commit

Permalink
fix(reports): use retainContextWhenHidden to not get empty reports af…
Browse files Browse the repository at this point in the history
…ter deselect

As the webview for the reports has no way of requerying the data we have to
use that option.
  • Loading branch information
mbehr1 committed Jan 4, 2021
1 parent 02af9b7 commit da4d344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dltReport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class DltReport implements vscode.Disposable {
constructor(private context: vscode.ExtensionContext, private doc: DltDocument, private callOnDispose: (r: DltReport) => any) {

this.panel = vscode.window.createWebviewPanel("dlt-logs.report", `dlt-logs report`, vscode.ViewColumn.Beside,
{ enableScripts: true });
{ enableScripts: true, retainContextWhenHidden: true });
// for ${filter.name} todo think about nice naming title

this.panel.onDidDispose(() => {
Expand Down

0 comments on commit da4d344

Please sign in to comment.