Skip to content

Commit

Permalink
Fire a change event when a watch expression is edited regardless of w…
Browse files Browse the repository at this point in the history
…hether or not there is a debug session active so the updated expression can always be shown in UI. Fixes issue eclipse-theia#12605

Signed-off-by: Sophia Li <sophia@ti.com>
  • Loading branch information
sophiali23 committed Jun 16, 2023
1 parent 8831c9d commit f27883e
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 f27883e

Please sign in to comment.