Skip to content

Commit d5ff113

Browse files
authored
when watch variables are created from storage, attach listeners (microsoft#223533)
* fixes microsoft#223219 * move loop outside of reader
1 parent a7632fe commit d5ff113

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/vs/workbench/contrib/debug/common/debugModel.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,6 +1442,10 @@ export class DebugModel extends Disposable implements IDebugModel {
14421442

14431443
this.instructionBreakpoints = [];
14441444
this.sessions = [];
1445+
1446+
for (const we of this.watchExpressions) {
1447+
this.watchExpressionChangeListeners.set(we.getId(), we.onDidChangeValue((e) => this._onDidChangeWatchExpressionValue.fire(e)));
1448+
}
14451449
}
14461450

14471451
getId(): string {

0 commit comments

Comments
 (0)