Skip to content

Commit d70c0a9

Browse files
authored
Fix openExternal and asExternalUri (microsoft#88211)
We allow tunneling for extensions regardless of whether they are in a local or remote extension host.
1 parent 6cbca5d commit d70c0a9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/workbench/api/common/extHost.api.impl.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,14 +245,14 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
245245
return extHostTerminalService.getDefaultShell(false, configProvider);
246246
},
247247
openExternal(uri: URI) {
248-
return extHostWindow.openUri(uri, { allowTunneling: !!initData.remote.isRemote });
248+
return extHostWindow.openUri(uri, { allowTunneling: !!initData.remote.authority });
249249
},
250250
asExternalUri(uri: URI) {
251251
if (uri.scheme === initData.environment.appUriScheme) {
252252
return extHostUrls.createAppUri(uri);
253253
}
254254

255-
return extHostWindow.asExternalUri(uri, { allowTunneling: !!initData.remote.isRemote });
255+
return extHostWindow.asExternalUri(uri, { allowTunneling: !!initData.remote.authority });
256256
},
257257
get remoteName() {
258258
return getRemoteName(initData.remote.authority);

0 commit comments

Comments
 (0)