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