提交 323dec0c 编写于 作者: I isidor

debug: reveal auto expanded element in repl

fixes #6343
上级 064382b6
......@@ -106,7 +106,9 @@ export class Repl extends Panel {
const elements = this.debugService.getModel().getReplElements();
const lastElement = elements.length > 0 ? elements[elements.length - 1] : null;
if (lastElement instanceof Expression && lastElement.reference > 0) {
return this.tree.expand(elements[elements.length - 1]);
return this.tree.expand(elements[elements.length - 1]).then(() =>
this.tree.reveal(elements[elements.length - 1], 0)
);
}
}, errors.onUnexpectedError);
}, Repl.REFRESH_DELAY);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册