Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions FASTBuildMonitorVSCode/src/buildMonitorService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,10 @@ export class BuildMonitorService extends EventEmitter {
}
return worker;
}

public getIsRestoringHistory(): boolean {
return this.watcher.getIsRestoringHistory();
}
}

export interface WorkerSnapshot {
Expand Down
6 changes: 5 additions & 1 deletion FASTBuildMonitorVSCode/src/monitorPanelProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ export class MonitorPanelProvider implements vscode.WebviewViewProvider {
});

// Listen for state changes from the service
this.service.on('stateChanged', () => this.sendSnapshot());
this.service.on('stateChanged', () => {
if(!this.service.getIsRestoringHistory()) {
this.sendSnapshot();
}
});

// Periodic refresh for running timers (active jobs durations, elapsed time)
if (this.refreshTimer) {
Expand Down
Loading