Let Remote extensions set port source (#116838)

This commit is contained in:
Alex Ross
2021-02-17 10:33:46 +01:00
committed by GitHub
parent 89b85a05d4
commit 7a0caf4d86
8 changed files with 60 additions and 11 deletions

View File

@@ -196,6 +196,9 @@ export class ExtHostTunnelService extends Disposable implements IExtHostTunnelSe
async setTunnelExtensionFunctions(provider: vscode.RemoteAuthorityResolver | undefined): Promise<IDisposable> {
if (provider) {
if (provider.candidatePortSource !== undefined) {
await this._proxy.$setCandidatePortSource(provider.candidatePortSource);
}
if (provider.showCandidatePort) {
this._showCandidatePort = provider.showCandidatePort;
await this._proxy.$setCandidateFilter();