Skip to content

Commit c7a5263

Browse files
committed
Add comment
1 parent 4043153 commit c7a5263

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/vscode/src/vs/workbench/services/extensions/browser/extensionService.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,15 @@ export class ExtensionService extends AbstractExtensionService implements IExten
7979
await this._userDataInitializationService.initializeInstalledExtensions(this._instantiationService);
8080
this._initialize().then(async () => {
8181
try {
82+
// This enables the `vscode.workspace.registerRemoteAuthorityResolver` API to be executed.
83+
//
84+
// It's specifically scoped to the "coder-link" scheme at the moment to reduce external
85+
// dependency on forking VS Code functionality.
86+
//
87+
// The remote host doesn't resolve to an extension host like the API expects, but instead
88+
// we only utilize the tunnel functionality.
8289
const extHost = this._getExtensionHostManager(ExtensionHostKind.Remote);
83-
const resolved = await extHost?.resolveAuthority('coder-link+main');
90+
const resolved = await extHost?.resolveAuthority('coder-link+web');
8491
if (resolved) {
8592
this._remoteExplorerService.setTunnelInformation(resolved.tunnelInformation);
8693
}

0 commit comments

Comments
 (0)