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

@@ -283,7 +283,7 @@ export class ExtHostTunnelService extends Disposable implements IExtHostTunnelSe
}
}
async setTunnelExtensionFunctions(provider: vscode.RemoteAuthorityResolver | undefined): Promise<IDisposable> {
async setTunnelFactory(provider: vscode.RemoteAuthorityResolver | undefined): Promise<IDisposable> {
// Do not wait for any of the proxy promises here.
// It will delay startup and there is nothing that needs to be waited for.
if (provider) {
@@ -312,11 +312,13 @@ export class ExtHostTunnelService extends Disposable implements IExtHostTunnelSe
];
}
this._proxy.$setTunnelProvider({
const tunnelFeatures = provider.tunnelFeatures ? {
elevation: !!provider.tunnelFeatures?.elevation,
public: !!provider.tunnelFeatures?.public,
privacyOptions
});
} : undefined;
this._proxy.$setTunnelProvider(tunnelFeatures);
}
} else {
this._forwardPortProvider = undefined;