diff --git a/packages/debug/src/browser/view/debug-watch-expression.tsx b/packages/debug/src/browser/view/debug-watch-expression.tsx index 1d4bf58d5ac39..c3477ef5f7965 100644 --- a/packages/debug/src/browser/view/debug-watch-expression.tsx +++ b/packages/debug/src/browser/view/debug-watch-expression.tsx @@ -42,11 +42,10 @@ export class DebugWatchExpression extends ExpressionItem { } protected override setResult(body?: DebugProtocol.EvaluateResponse['body'], error?: string): void { - if (!this.options.session()) { - return; + if (this.options.session()) { + super.setResult(body, error); + this.isError = !!error; } - super.setResult(body, error); - this.isError = !!error; this.options.onDidChange(); }