Move tunnel features (#140620)

This commit is contained in:
Alex Ross
2022-01-13 12:13:40 +01:00
committed by GitHub
parent 86eb34a268
commit c393048b98
11 changed files with 75 additions and 50 deletions

View File

@@ -920,7 +920,7 @@ class RemoteExplorerService implements IRemoteExplorerService {
constructor(
@IStorageService private readonly storageService: IStorageService,
@ITunnelService tunnelService: ITunnelService,
@ITunnelService private readonly tunnelService: ITunnelService,
@IConfigurationService configurationService: IConfigurationService,
@IWorkbenchEnvironmentService environmentService: IWorkbenchEnvironmentService,
@IRemoteAuthorityResolverService remoteAuthorityResolverService: IRemoteAuthorityResolverService,
@@ -960,6 +960,9 @@ class RemoteExplorerService implements IRemoteExplorerService {
}
setTunnelInformation(tunnelInformation: TunnelInformation | undefined): void {
if (tunnelInformation?.features) {
this.tunnelService.setTunnelFeatures(tunnelInformation.features);
}
this.tunnelModel.addEnvironmentTunnels(tunnelInformation?.environmentTunnels);
}