Rename resolveExternalUri to asExternalUri

#81131
This commit is contained in:
Matt Bierner
2019-09-30 11:02:24 -07:00
parent 3ae6f0bf93
commit 8079ff0001
5 changed files with 7 additions and 7 deletions

View File

@@ -54,14 +54,14 @@ export class ExtHostWindow implements ExtHostWindowShape {
return this._proxy.$openUri(stringOrUri, options);
}
async resolveExternalUri(uri: URI, options: IOpenUriOptions): Promise<URI> {
async asExternalUri(uri: URI, options: IOpenUriOptions): Promise<URI> {
if (isFalsyOrWhitespace(uri.scheme)) {
return Promise.reject('Invalid scheme - cannot be empty');
} else if (!new Set([Schemas.http, Schemas.https]).has(uri.scheme)) {
return Promise.reject(`Invalid scheme '${uri.scheme}'`);
}
const result = await this._proxy.$resolveExternalUri(uri, options);
const result = await this._proxy.$asExternalUri(uri, options);
return URI.from(result);
}
}