Skip to content

Commit abe1c62

Browse files
committed
Refresh also "Opened Traces" view when executing refreshContext
This will also refresh the "Opened Traces" view when refreshing the context, e.g. when user presses the "Refresh Trace Explorer" button. Signed-off-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
1 parent bd5fd87 commit abe1c62

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vscode-trace-extension/src/extension.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,10 @@ export async function activate(context: vscode.ExtensionContext): Promise<Extern
257257
await serverStatusService.updateServerStatus(isUp);
258258
if (isUp) {
259259
await updateNoExperimentsContext();
260+
if (tracesProvider) {
261+
// Trigger webview refresh
262+
tracesProvider.postMessagetoWebview(VSCODE_MESSAGES.TRACE_SERVER_STARTED, undefined);
263+
}
260264
}
261265
})
262266
);

0 commit comments

Comments
 (0)