mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 17:48:56 +01:00
Move tunnel features (#140620)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user