提交 255fdea9 编写于 作者: R rebornix

getControl can return undefined.

上级 f429a855
......@@ -197,6 +197,7 @@ export class NotebookContribution extends Disposable implements IWorkbenchContri
const visibleNotebookEditors = editorService.visibleEditorPanes
.filter(pane => (pane as any).isNotebookEditor)
.map(pane => pane.getControl() as INotebookEditor)
.filter(control => !!control)
.map(editor => editor.getId());
this.notebookService.updateVisibleNotebookEditor(visibleNotebookEditors);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册