From 5a639d753e0bb239fd5159ead2bb4ff724123c4e Mon Sep 17 00:00:00 2001 From: Marcel Jacobse Date: Sun, 19 Jul 2026 18:07:00 +0200 Subject: [PATCH] Update on stack frame change This updates the graphical watch whenver a different stack frame is selected in the call stack pane. Mirrors the behaviour of the normal watch pane. --- src/debugger.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/debugger.ts b/src/debugger.ts index c310921..3846ec1 100644 --- a/src/debugger.ts +++ b/src/debugger.ts @@ -118,6 +118,14 @@ export class Debugger { }; } })); + context.subscriptions.push( + vscode.debug.onDidChangeActiveStackItem(item => { + if (item instanceof vscode.DebugStackFrame) { + this.sessionInfo = new SessionInfo(item.session, item.threadId, item.frameId); + this._onStopped.fire(); + } + }) + ); } private _setUnavailable() {