mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
Explorer activity icon unsaved count decoration stays around (fixes #7180)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user