提交 d0121067 编写于 作者: I isidor

debug console: Reveal last element when we add new expression

上级 e05aa178
......@@ -229,6 +229,8 @@ export class Repl extends Panel implements IPrivateReplService, IHistoryNavigati
const session: IDebugSession = this.dataSource.input;
if (session) {
session.addReplExpression(this.debugService.getViewModel().focusedStackFrame, this.replInput.getValue());
// Reveal last element when we add new expression
this.tree.scrollTop = this.tree.scrollHeight - this.tree.renderHeight;
this.history.add(this.replInput.getValue());
this.replInput.setValue('');
const shouldRelayout = this.replInputHeight > Repl.REPL_INPUT_INITIAL_HEIGHT;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册