Skip to content
This repository was archived by the owner on Mar 2, 2022. It is now read-only.

Commit 4a8d320

Browse files
committed
minor fix
1 parent 1a0ccd2 commit 4a8d320

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

durablefunctionsmonitor-vscodeext/src/MonitorTreeDataProvider.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ export class MonitorTreeDataProvider implements vscode.TreeDataProvider<vscode.T
125125
return;
126126
}
127127

128+
if (!!this._monitorViews.isAnyMonitorViewVisible()) {
129+
return;
130+
}
131+
128132
const DfmDoNotAskUponDebugSession = 'DfmDoNotAskUponDebugSession';
129133
const doNotAsk = this._context.globalState.get(DfmDoNotAskUponDebugSession, false);
130134

durablefunctionsmonitor-vscodeext/src/MonitorViewList.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ export class MonitorViewList {
1919
private _log: (line: string) => void) {
2020
}
2121

22+
isAnyMonitorViewVisible(): boolean {
23+
return Object.keys(this._monitorViews).some(k => !!this._monitorViews[k] && this._monitorViews[k].isVisible);
24+
}
25+
2226
isMonitorViewVisible(connSettings: StorageConnectionSettings): boolean {
2327
const monitorView = this._monitorViews[connSettings.hashKey];
2428
return !!monitorView && monitorView.isVisible;

0 commit comments

Comments
 (0)