From c7a5263b38c970d4c95e0bf8226d1b94f3032148 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Wed, 8 Sep 2021 11:43:47 -0500 Subject: [PATCH] Add comment --- .../services/extensions/browser/extensionService.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/vscode/src/vs/workbench/services/extensions/browser/extensionService.ts b/lib/vscode/src/vs/workbench/services/extensions/browser/extensionService.ts index f56ced3d..dead7008 100644 --- a/lib/vscode/src/vs/workbench/services/extensions/browser/extensionService.ts +++ b/lib/vscode/src/vs/workbench/services/extensions/browser/extensionService.ts @@ -79,8 +79,15 @@ export class ExtensionService extends AbstractExtensionService implements IExten await this._userDataInitializationService.initializeInstalledExtensions(this._instantiationService); this._initialize().then(async () => { try { + // This enables the `vscode.workspace.registerRemoteAuthorityResolver` API to be executed. + // + // It's specifically scoped to the "coder-link" scheme at the moment to reduce external + // dependency on forking VS Code functionality. + // + // The remote host doesn't resolve to an extension host like the API expects, but instead + // we only utilize the tunnel functionality. const extHost = this._getExtensionHostManager(ExtensionHostKind.Remote); - const resolved = await extHost?.resolveAuthority('coder-link+main'); + const resolved = await extHost?.resolveAuthority('coder-link+web'); if (resolved) { this._remoteExplorerService.setTunnelInformation(resolved.tunnelInformation); }