From 1a6e4fcfeb3b974373d80e74627035400ca81405 Mon Sep 17 00:00:00 2001 From: Alex Ross Date: Wed, 10 Nov 2021 16:23:26 +0100 Subject: [PATCH] Add privacy and protocol to tunnels API Fixes #124334 --- src/vs/platform/remote/common/remoteAuthorityResolver.ts | 2 ++ src/vs/workbench/api/browser/mainThreadTunnelService.ts | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/vs/platform/remote/common/remoteAuthorityResolver.ts b/src/vs/platform/remote/common/remoteAuthorityResolver.ts index af83a56d6b3..ecf80672720 100644 --- a/src/vs/platform/remote/common/remoteAuthorityResolver.ts +++ b/src/vs/platform/remote/common/remoteAuthorityResolver.ts @@ -24,6 +24,8 @@ export interface ResolvedOptions { export interface TunnelDescription { remoteAddress: { port: number, host: string }; localAddress: { port: number, host: string } | string; + privacy?: string; + protocol?: string; } export interface TunnelInformation { environmentTunnels?: TunnelDescription[]; diff --git a/src/vs/workbench/api/browser/mainThreadTunnelService.ts b/src/vs/workbench/api/browser/mainThreadTunnelService.ts index 415f674a902..a1d54ed6423 100644 --- a/src/vs/workbench/api/browser/mainThreadTunnelService.ts +++ b/src/vs/workbench/api/browser/mainThreadTunnelService.ts @@ -153,7 +153,9 @@ export class MainThreadTunnelService extends Disposable implements MainThreadTun return (await this.tunnelService.tunnels).map(tunnel => { return { remoteAddress: { port: tunnel.tunnelRemotePort, host: tunnel.tunnelRemoteHost }, - localAddress: tunnel.localAddress + localAddress: tunnel.localAddress, + privacy: tunnel.privacy, + protocol: tunnel.protocol }; }); }