Skip to content

Commit 927de0a

Browse files
committed
removing refresh on stopping because the activeStackItem is not set yet
1 parent 0667f42 commit 927de0a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,6 @@ export class LiveWatchTreeDataProvider implements vscode.TreeDataProvider<LiveWa
6868
this.addVSCodeCommands();
6969
const onDidChangeActiveDebugSession = tracker.onDidChangeActiveDebugSession(async (session) => await this.handleOnDidChangeActiveDebugSession(session));
7070
const onWillStartSession = tracker.onWillStartSession(async (session) => await this.handleOnWillStartSession(session));
71-
// Doing a refresh on pausing to ensure we have the latest data
72-
const onStopped = tracker.onStopped(async (event) => {
73-
if (this._activeSession?.session.id === event.session.session.id) {
74-
await this.refresh();
75-
}
76-
});
7771
// Using this event because this is when the threadId is available for evaluations
7872
const onStackTrace = tracker.onDidChangeActiveStackItem(async (item) => {
7973
if ((item.item as vscode.DebugStackFrame).frameId !== undefined) {
@@ -91,7 +85,6 @@ export class LiveWatchTreeDataProvider implements vscode.TreeDataProvider<LiveWa
9185
this._context.subscriptions.push(
9286
onDidChangeActiveDebugSession,
9387
onWillStartSession,
94-
onStopped,
9588
onStackTrace,
9689
onWillStopSession);
9790
}

0 commit comments

Comments
 (0)