Skip to content

Commit 1b0788d

Browse files
committed
Keep Jaeger panel content when panel is not visible
1 parent 42571ad commit 1b0788d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/views/codeAnalytics/codeAnalyticsView.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -281,16 +281,15 @@ class CodeAnalyticsViewProvider implements vscode.WebviewViewProvider,vscode.Dis
281281

282282
private async onOpenJaegerPanel(e: UiMessage.Notify.OpenJaegerPanel) {
283283
if (e.traceIds && Object.keys(e.traceIds).length > 0 && e.span && e.jaegerAddress) {
284-
let options: vscode.WebviewOptions = {
285-
enableScripts: true,
286-
enableCommandUris: true
287-
};
288284

289285
const panel = vscode.window.createWebviewPanel(
290286
"jaegerUI",
291287
"Jaeger",
292288
vscode.ViewColumn.One,
293-
options
289+
{
290+
enableScripts: true,
291+
retainContextWhenHidden: true
292+
}
294293
);
295294
const jaegerPanel = new JaegerPanel();
296295
const jaegerDiskPath = vscode.Uri.joinPath(this._extensionUri, "out", "views-ui", "jaegerUi");

0 commit comments

Comments
 (0)