mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-18 15:55:59 +01:00
Only do forwarding for local extension host if there's a tunnel provider (#266014)
This commit is contained in:
@@ -422,9 +422,9 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
ExtHostTelemetryLogger.validateSender(sender);
|
||||
return extHostTelemetry.instantiateLogger(extension, sender, options);
|
||||
},
|
||||
openExternal(uri: URI, options?: { allowContributedOpeners?: boolean | string }) {
|
||||
async openExternal(uri: URI, options?: { allowContributedOpeners?: boolean | string }) {
|
||||
return extHostWindow.openUri(uri, {
|
||||
allowTunneling: !!initData.remote.authority,
|
||||
allowTunneling: initData.remote.isRemote ?? (initData.remote.authority ? await extHostTunnelService.hasTunnelProvider() : false),
|
||||
allowContributedOpeners: options?.allowContributedOpeners,
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user