提交 9ba1f49e 编写于 作者: I isidor

fixes #6703

上级 1d757958
......@@ -1729,8 +1729,11 @@ export class FocusOpenEditorsView extends Action {
public run(): TPromise<any> {
return this.viewletService.openViewlet(VIEWLET_ID, true).then((viewlet: ExplorerViewlet) => {
viewlet.getOpenEditorsView().expand();
viewlet.getOpenEditorsView().getViewer().DOMFocus();
const openEditorsView = viewlet.getOpenEditorsView();
if (openEditorsView) {
openEditorsView.expand();
openEditorsView.getViewer().DOMFocus();
}
});
}
}
......@@ -1788,7 +1791,9 @@ export class ShowActiveFileInExplorer extends Action {
}
} else {
const openEditorsView = viewlet.getOpenEditorsView();
openEditorsView.expand();
if (openEditorsView) {
openEditorsView.expand();
}
}
});
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册