提交 69271d1a 编写于 作者: I isidor

fixes #5148

上级 a5c45f5b
...@@ -824,7 +824,7 @@ export class DebugService extends ee.EventEmitter implements debug.IDebugService ...@@ -824,7 +824,7 @@ export class DebugService extends ee.EventEmitter implements debug.IDebugService
public revealRepl(focus = true): TPromise<void> { public revealRepl(focus = true): TPromise<void> {
return this.panelService.openPanel(debug.REPL_ID, focus).then((repl: Repl) => { return this.panelService.openPanel(debug.REPL_ID, focus).then((repl: Repl) => {
const elements = this.model.getReplElements(); const elements = this.model.getReplElements();
if (elements.length > 0) { if (repl && elements.length > 0) {
return repl.reveal(elements[elements.length - 1]); return repl.reveal(elements[elements.length - 1]);
} }
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册