Fix tests

This commit is contained in:
Daniel Imms
2016-11-15 10:34:27 -08:00
parent 4389ae898b
commit f627642f26
2 changed files with 7 additions and 2 deletions

View File

@@ -86,6 +86,11 @@ export class UntitledEditorInput extends AbstractUntitledEditorInput {
return this.cachedModel.isDirty();
}
// A disposed input is never dirty, even if it was restored from backup
if (this.isDisposed()) {
return false;
}
// untitled files with an associated path or associated resource
return this.hasAssociatedFilePath || !!this.resource;
}