mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user