提交 10119d08 编写于 作者: I isidor

debug: evaluate all watch expressions on repl element add

#2399
上级 2e532902
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册