Explorer activity icon unsaved count decoration stays around (fixes #7180)

This commit is contained in:
Benjamin Pasero
2016-06-03 15:08:23 +02:00
parent f38a35bb46
commit a25c0caae0
3 changed files with 10 additions and 8 deletions

View File

@@ -158,8 +158,8 @@ export class UntitledEditorInput extends AbstractUntitledEditorInput {
mime = mimeFromPath; // take most specific mime type if file path is associated and mime is specific
}
}
return this.instantiationService.createInstance(UntitledEditorModel, content, mime || MIME_TEXT,
this.resource, this.hasAssociatedFilePath);
return this.instantiationService.createInstance(UntitledEditorModel, content, mime || MIME_TEXT, this.resource, this.hasAssociatedFilePath);
}
public matches(otherInput: any): boolean {
@@ -179,15 +179,15 @@ export class UntitledEditorInput extends AbstractUntitledEditorInput {
public dispose(): void {
// Listeners
dispose(this.toUnbind);
// Model
if (this.cachedModel) {
this.cachedModel.dispose();
this.cachedModel = null;
}
// Listeners
dispose(this.toUnbind);
super.dispose();
}
}