parent
1834a0da4d
commit
8d7db6955d
1 changed files with 1 additions and 7 deletions
|
@ -325,16 +325,10 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
|||
return extHostUrls.createAppUri(uri);
|
||||
}
|
||||
|
||||
const isHttp = matchesScheme(uri, Schemas.http) || matchesScheme(uri, Schemas.https);
|
||||
|
||||
if (!isHttp) {
|
||||
checkProposedApiEnabled(extension); // https://github.com/microsoft/vscode/issues/124263
|
||||
}
|
||||
|
||||
try {
|
||||
return await extHostWindow.asExternalUri(uri, { allowTunneling: !!initData.remote.authority });
|
||||
} catch (err) {
|
||||
if (isHttp) {
|
||||
if (matchesScheme(uri, Schemas.http) || matchesScheme(uri, Schemas.https)) {
|
||||
return uri;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue