Skip to content

Commit

Permalink
debug: fix edit watch expressions when no debug session is present
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
sophiali23 committed Aug 31, 2023
1 parent 704996d commit dc8b08c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/debug/src/browser/view/debug-watch-expression.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit dc8b08c

Please sign in to comment.