提交 c4690c65 编写于 作者: B Benjamin Pasero

prevent editor open when control is not ready yet

上级 13f23dbb
......@@ -264,7 +264,8 @@ export class EditorPart extends Part implements IEditorPart, IEditorGroupService
!input || // no input
position === null || // invalid position
Object.keys(this.mapEditorInstantiationPromiseToEditor[position]).length > 0 || // pending editor load
this.editorGroupsControl.isDragging() // pending editor DND
!this.editorGroupsControl || // too early
this.editorGroupsControl.isDragging() // pending editor DND
) {
return TPromise.as<BaseEditor>(null);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册