Skip to content

Commit

Permalink
Refresh trace viewer after server URL preference changes
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
bhufmann committed Mar 27, 2024
1 parent 5527ab3 commit 901c9b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vscode-trace-extension/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
})
);
Expand Down

0 comments on commit 901c9b2

Please sign in to comment.