From 306f539558f41295bb86cc2c7d6c99ae36c91704 Mon Sep 17 00:00:00 2001 From: Bernd Hufmann Date: Tue, 26 Mar 2024 17:20:02 -0400 Subject: [PATCH] Refresh trace viewer after server URL preference changes For the case that with current URL the welcome view is rendered due to noExperiment or server is down, this will render the trace explorer (or welcome view) after a server URL change. Without calling refresh, the welcome view stays, even if the other server has experiments. Fixes #229 Signed-off-by: Bernd Hufmann --- vscode-trace-extension/src/extension.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vscode-trace-extension/src/extension.ts b/vscode-trace-extension/src/extension.ts index 69c8e3c..141d654 100644 --- a/vscode-trace-extension/src/extension.ts +++ b/vscode-trace-extension/src/extension.ts @@ -103,6 +103,9 @@ export function activate(context: vscode.ExtensionContext): ExternalAPI { // Signal the change to all trace panels TraceViewerPanel.updateTraceServerUrl(newTspClientURL); + + // Refresh so that either trace explorer or welcome page is rendered + vscode.commands.executeCommand('trace-explorer.refreshContext'); } }) );