@@ -76,7 +76,7 @@ import { dirname, joinPath } from 'vs/base/common/resources';
76
76
import { IUserDataProfilesService , PROFILES_ENABLEMENT_CONFIG } from 'vs/platform/userDataProfile/common/userDataProfile' ;
77
77
import { NullPolicyService } from 'vs/platform/policy/common/policy' ;
78
78
import { IRemoteExplorerService , TunnelSource } from 'vs/workbench/services/remote/common/remoteExplorerService' ;
79
- import { DisposableTunnel } from 'vs/platform/tunnel/common/tunnel' ;
79
+ import { DisposableTunnel , TunnelProtocol } from 'vs/platform/tunnel/common/tunnel' ;
80
80
import { ILabelService } from 'vs/platform/label/common/label' ;
81
81
import { UserDataProfileService } from 'vs/workbench/services/userDataProfile/common/userDataProfileService' ;
82
82
import { IUserDataProfileService } from 'vs/workbench/services/userDataProfile/common/userDataProfile' ;
@@ -181,7 +181,15 @@ export class BrowserMain extends Disposable {
181
181
source : TunnelSource . Extension ,
182
182
description : labelService . getHostLabel ( Schemas . vscodeRemote , this . configuration . remoteAuthority )
183
183
} ,
184
- elevateIfNeeded : false
184
+ elevateIfNeeded : false ,
185
+ privacy : tunnelOptions . privacy
186
+ } , {
187
+ label : tunnelOptions . label ,
188
+ elevateIfNeeded : undefined ,
189
+ onAutoForward : undefined ,
190
+ requireLocalPort : undefined ,
191
+ protocol : tunnelOptions . protocol === TunnelProtocol . Https ? tunnelOptions . protocol : TunnelProtocol . Http ,
192
+
185
193
} ) ;
186
194
if ( ! tunnel ) {
187
195
throw new Error ( 'cannot open tunnel' ) ;
0 commit comments