if(!identifier||!identifier.editor||!identifier.editor.isDirty()||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.stacks.count(identifier.editor)>1/* allow to close a dirty editor if it is opened in another group */)){
returnTPromise.as(false);// no veto
}
...
...
@@ -1058,7 +1058,7 @@ export class EditorPart extends Part implements IEditorPart, IEditorGroupService
// Unpinning an editor closes the preview editor if we have any