diff --git a/src/vs/workbench/api/common/extHost.api.impl.ts b/src/vs/workbench/api/common/extHost.api.impl.ts index 4f09b1dc565..a79c2a62bde 100644 --- a/src/vs/workbench/api/common/extHost.api.impl.ts +++ b/src/vs/workbench/api/common/extHost.api.impl.ts @@ -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; }