Skip to content

Commit 6b4a03f

Browse files
author
Joe
committed
refactor: remove coder-link stuff
1 parent f2d27f5 commit 6b4a03f

File tree

1 file changed

+2
-29
lines changed

1 file changed

+2
-29
lines changed

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

+2-29
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { IWorkbenchExtensionEnablementService, IWebExtensionsScannerService } fr
99
import { IRemoteAgentService } from 'vs/workbench/services/remote/common/remoteAgentService';
1010
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
1111
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
12-
import { IExtensionService, IExtensionHost, toExtensionDescription, ExtensionRunningLocation, extensionRunningLocationToString, ExtensionHostKind } from 'vs/workbench/services/extensions/common/extensions';
12+
import { IExtensionService, IExtensionHost, toExtensionDescription, ExtensionRunningLocation, extensionRunningLocationToString } from 'vs/workbench/services/extensions/common/extensions';
1313
import { registerSingleton } from 'vs/platform/instantiation/common/extensions';
1414
import { IFileService } from 'vs/platform/files/common/files';
1515
import { IProductService } from 'vs/platform/product/common/productService';
@@ -22,7 +22,7 @@ import { ExtensionIdentifier, IExtensionDescription, ExtensionKind, IExtension,
2222
import { FetchFileSystemProvider } from 'vs/workbench/services/extensions/browser/webWorkerFileSystemProvider';
2323
import { Schemas } from 'vs/base/common/network';
2424
import { DisposableStore } from 'vs/base/common/lifecycle';
25-
import { IRemoteAuthorityResolverService, RemoteAuthorityResolverError, RemoteAuthorityResolverErrorCode } from 'vs/platform/remote/common/remoteAuthorityResolver';
25+
import { IRemoteAuthorityResolverService } from 'vs/platform/remote/common/remoteAuthorityResolver';
2626
import { ILifecycleService, LifecyclePhase } from 'vs/workbench/services/lifecycle/common/lifecycle';
2727
import { IExtensionManagementService } from 'vs/platform/extensionManagement/common/extensionManagement';
2828
import { IWorkspaceContextService } from 'vs/platform/workspace/common/workspace';
@@ -78,33 +78,6 @@ export class ExtensionService extends AbstractExtensionService implements IExten
7878
this._lifecycleService.when(LifecyclePhase.Ready).then(async () => {
7979
await this._userDataInitializationService.initializeInstalledExtensions(this._instantiationService);
8080
await this._initialize();
81-
82-
try {
83-
// This enables the `vscode.workspace.registerRemoteAuthorityResolver` API to be executed.
84-
//
85-
// It's specifically scoped to the "coder-link" scheme at the moment to reduce external
86-
// dependency on forking VS Code functionality.
87-
//
88-
// The remote host doesn't resolve to an extension host like the API expects, but instead
89-
// we only utilize the tunnel functionality.
90-
const extHost = this._getExtensionHostManager(ExtensionHostKind.Remote);
91-
const resolved = await extHost?.resolveAuthority('coder-link+web');
92-
if (resolved) {
93-
this._remoteExplorerService.setTunnelInformation(resolved.tunnelInformation);
94-
}
95-
} catch (error: any) {
96-
let message = '';
97-
98-
if (error instanceof RemoteAuthorityResolverError && error._code === RemoteAuthorityResolverErrorCode.NoResolverFound) {
99-
message = error.message;
100-
}
101-
102-
if (error instanceof Error) {
103-
message = error.message;
104-
}
105-
106-
this._logOrShowMessage(Severity.Ignore, nls.localize('link', "Failed to initialize remote Link authority: {0}", message || error));
107-
}
10881
});
10982

11083
this._initFetchFileSystem();

0 commit comments

Comments
 (0)