src/vs/workbench/contrib/files/browser/editors/fileEditorInput.ts/FileEditorInput/onDidCreateTextFileModel
class FileEditorInput:	private onDidCreateTextFileModel(model: ITextFileEditorModel): void {

		// Once the text file model is created, we keep it inside
		// the input to be able to implement some methods properly
		if (isEqual(model.resource, this.resource)) {
			this.model = model;

			this.registerModelListeners(model);
		}
	}