Set tunnel factory earlier (#122557)

* Set tunnel factory earlier

* Don't await in setTunnelExtensionFunctions
This commit is contained in:
Alex Ross
2021-04-28 09:43:13 -07:00
committed by GitHub
parent a8a1b0f6db
commit 1bd250ca51
2 changed files with 6 additions and 4 deletions

View File

@@ -654,10 +654,10 @@ export abstract class AbstractExtHostExtensionService extends Disposable impleme
}
try {
this._disposables.add(await this._extHostTunnelService.setTunnelExtensionFunctions(resolver));
performance.mark(`code/extHost/willResolveAuthority/${authorityPrefix}`);
const result = await resolver.resolve(remoteAuthority, { resolveAttempt });
performance.mark(`code/extHost/didResolveAuthorityOK/${authorityPrefix}`);
this._disposables.add(await this._extHostTunnelService.setTunnelExtensionFunctions(resolver));
// Split merged API result into separate authority/options
const authority: ResolvedAuthority = {