if(!identifier||!identifier.editor||!identifier.editor.isDirty()||(ignoreIfOpenedInOtherGroup&&this.stacks.count(identifier.editor)>1/* allow to close a dirty editor if it is opened in another group */)){
if(!identifier||!identifier.editor||!identifier.editor.isDirty()||(ignoreIfOpenedInOtherGroup&&this.countEditors(identifier.editor,true/* include diff editors */)>1/* allow to close a dirty editor if it is opened in another group */)){
returnTPromise.as(false);// no veto
}
...
...
@@ -677,6 +678,15 @@ export class EditorPart extends Part implements IEditorPart, IEditorGroupService