Skip to content

Commit

Permalink
Select experiment when opening from open command
Browse files Browse the repository at this point in the history
Send TRACEVIEWERTAB_ACTIVATED signal when setting the experiment after
a experiment is opened. This will select the experiment in the opened
traces view which then will broadcast the EXPERIMENT_SELECTED signal
to update other webviews.

Fixes #264

Signed-off-by: Bernd Hufmann <[email protected]>
  • Loading branch information
bhufmann committed Sep 13, 2024
1 parent cddb22f commit e1bfcee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ export class TraceViewerPanel {
const wrapper: string = JSONBig.stringify(experiment);
this._panel.webview.postMessage({ command: VSCODE_MESSAGES.SET_EXPERIMENT, data: wrapper });
signalManager().fireExperimentOpenedSignal(experiment);
// No need to send activatedSignal because it will be triggered when the panal becomes active
signalManager().fireTraceViewerTabActivatedSignal(experiment);
}

addOutput(descriptor: OutputDescriptor): void {
Expand Down

0 comments on commit e1bfcee

Please sign in to comment.