Skip to content

Commit 3216d7d

Browse files
committed
if no aux connection, maintain value
1 parent e5faad7 commit 3216d7d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/views/live-watch/live-watch.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ export class LiveWatchTreeDataProvider implements vscode.TreeDataProvider<LiveWa
7575
}
7676
});
7777
// Using this event because this is when the threadId is available for evaluations
78-
const onStackTrace = tracker.onDidChangeActiveStackItem(async () => await this.refresh());
78+
const onStackTrace = tracker.onDidChangeActiveStackItem(async (item) => {
79+
if ((item.item as vscode.DebugStackFrame).frameId !== undefined) {
80+
await this.refresh();
81+
}
82+
});
7983
// Clearing active session on closing the session
8084
const onWillStopSession = tracker.onWillStopSession(async (session) => {
8185
if (this.activeSession?.session.id && this.activeSession?.session.id === session.session.id) {
@@ -84,11 +88,7 @@ export class LiveWatchTreeDataProvider implements vscode.TreeDataProvider<LiveWa
8488
await this.refresh();
8589
await this.save();
8690
});
87-
//
88-
const onContinued = tracker.onContinued(async () => {
89-
await this.refresh();
90-
});
91-
this._context.subscriptions.push(onContinued,
91+
this._context.subscriptions.push(
9292
onDidChangeActiveDebugSession,
9393
onWillStartSession,
9494
onStopped,

0 commit comments

Comments
 (0)