src/vs/workbench/api/browser/mainThreadDocuments.ts/MainThreadDocuments/_handleAsResourceInput
class MainThreadDocuments:	private async _handleAsResourceInput(uri: URI): Promise<URI> {
		const ref = await this._textModelResolverService.createModelReference(uri);
		this._modelReferenceCollection.add(uri, ref, ref.object.textEditorModel.getValueLength());
		return ref.object.textEditorModel.uri;
	}