Skip to content

Commit

Permalink
repl: no neet to focusStackFrame when repl expression is added
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn committed Sep 6, 2019
1 parent 2b46fe4 commit 800fdbc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/vs/workbench/contrib/debug/browser/debugSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -921,11 +921,9 @@ export class DebugSession implements IDebugSession {
}

async addReplExpression(stackFrame: IStackFrame | undefined, name: string): Promise<void> {
const viewModel = this.debugService.getViewModel();
await this.repl.addReplExpression(stackFrame, name);
this._onDidChangeREPLElements.fire();
// Evaluate all watch expressions and fetch variables again since repl evaluation might have changed some.
this.debugService.focusStackFrame(viewModel.focusedStackFrame, viewModel.focusedThread, viewModel.focusedSession);
variableSetEmitter.fire();
}

Expand Down

0 comments on commit 800fdbc

Please sign in to comment.