Skip to content

Commit dc8b08c

Browse files
authoredAug 31, 2023
debug: fix edit watch expressions when no debug session is present
The commit fixes an issue where the edit watch expressions was not updated properly if there was no debug session present. Signed-off-by: Sophia Li <sophia@ti.com>
1 parent 704996d commit dc8b08c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

‎packages/debug/src/browser/view/debug-watch-expression.tsx

+3-4
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,10 @@ export class DebugWatchExpression extends ExpressionItem {
4242
}
4343

4444
protected override setResult(body?: DebugProtocol.EvaluateResponse['body'], error?: string): void {
45-
if (!this.options.session()) {
46-
return;
45+
if (this.options.session()) {
46+
super.setResult(body, error);
47+
this.isError = !!error;
4748
}
48-
super.setResult(body, error);
49-
this.isError = !!error;
5049
this.options.onDidChange();
5150
}
5251

0 commit comments

Comments
 (0)
Please sign in to comment.