Add elevation message to ports UI (#113990)

This change allows remote extension to handle elevation if they want.
Fixes microsoft/vscode-remote-release#3922
This commit is contained in:
Alex Ross
2021-01-07 16:21:06 +01:00
committed by GitHub
parent efd298ccbd
commit a7cf03de2d
12 changed files with 149 additions and 73 deletions

View File

@@ -195,7 +195,9 @@ export class ExtHostTunnelService extends Disposable implements IExtHostTunnelSe
}
if (provider.tunnelFactory) {
this._forwardPortProvider = provider.tunnelFactory;
await this._proxy.$setTunnelProvider();
await this._proxy.$setTunnelProvider(provider.tunnelFeatures ?? {
elevation: false
});
}
} else {
this._forwardPortProvider = undefined;