another fix for #15941

This commit is contained in:
Benjamin Pasero
2016-11-29 13:00:57 +01:00
parent 80757558f2
commit e70b8b6887
3 changed files with 14 additions and 6 deletions

View File

@@ -28,7 +28,7 @@ export class UntitledEditorInput extends AbstractUntitledEditorInput {
public static SCHEMA: string = 'untitled';
private resource: URI;
private hasAssociatedFilePath: boolean;
private _hasAssociatedFilePath: boolean;
private modeId: string;
private cachedModel: UntitledEditorModel;
@@ -49,13 +49,17 @@ export class UntitledEditorInput extends AbstractUntitledEditorInput {
super();
this.resource = resource;
this.hasAssociatedFilePath = hasAssociatedFilePath;
this._hasAssociatedFilePath = hasAssociatedFilePath;
this.modeId = modeId;
this.toUnbind = [];
this._onDidModelChangeContent = new Emitter<void>();
this._onDidModelChangeEncoding = new Emitter<void>();
}
public get hasAssociatedFilePath(): boolean {
return this._hasAssociatedFilePath;
}
public get onDidModelChangeContent(): Event<void> {
return this._onDidModelChangeContent.event;
}