💄 tslint

This commit is contained in:
Johannes Rieken
2016-01-12 15:06:39 +01:00
parent 4ad3d6d00f
commit 5273e35321

View File

@@ -18,7 +18,7 @@ import {IModelService} from 'vs/editor/common/services/modelService';
*/
export class ResourceEditorInput extends EditorInput {
public static ID = 'workbench.editors.resourceEditorInput';
public static ID: string = 'workbench.editors.resourceEditorInput';
protected cachedModel: ResourceEditorModel;
protected resource: URI;
@@ -59,7 +59,7 @@ export class ResourceEditorInput extends EditorInput {
return TPromise.as<EditorModel>(this.cachedModel);
}
//Otherwise Create Model and handle dispose event
// Otherwise Create Model and handle dispose event
let model = this.instantiationService.createInstance(ResourceEditorModel, this.resource);
const unbind = model.addListener(EventType.DISPOSE, () => {
this.cachedModel = null; // make sure we do not dispose model again
@@ -98,4 +98,4 @@ export class ResourceEditorInput extends EditorInput {
super.dispose();
}
}
}