src/vs/editor/standalone/browser/standaloneServices.ts/StandaloneTextModelService/createModelReference
class StandaloneTextModelService:	public createModelReference(resource: URI): Promise<IReference<IResolvedTextEditorModel>> {
		const model = this.modelService.getModel(resource);

		if (!model) {
			return Promise.reject(new Error(`Model not found`));
		}

		return Promise.resolve(new ImmortalReference(new SimpleModel(model)));
	}