Skip to content

Commit

Permalink
debug: evaluate all watch expressions on repl element add
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn committed May 2, 2016
1 parent 2e53290 commit 10119d0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,10 @@ export class DebugService implements debug.IDebugService {

public addReplExpression(name: string): TPromise<void> {
this.telemetryService.publicLog('debugService/addReplExpression');
return this.model.addReplExpression(this.session, this.viewModel.getFocusedStackFrame(), name);
const focussedStackFrame = this.viewModel.getFocusedStackFrame();
return this.model.addReplExpression(this.session, focussedStackFrame, name)
// Evaluate all watch expressions again since repl evaluation might have changed some.
.then(() => this.setFocusedStackFrameAndEvaluate(focussedStackFrame));
}

public logToRepl(value: string | { [key: string]: any }, severity?: severity): void {
Expand Down

0 comments on commit 10119d0

Please sign in to comment.