Avoid extensionService.getExtension and use ActivationKind.Immediate to allow that URI handling works while resolving (#184312)

Avoid `extensionService.getExtension` and use `ActivationKind.Immediate` to allow that URI handling works while resolving (fixes #182217)
This commit is contained in:
Alexandru Dima
2023-06-05 15:04:35 +02:00
committed by GitHub
parent 74c50b0c78
commit 8f93229614
5 changed files with 39 additions and 24 deletions

View File

@@ -788,7 +788,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
return extHostDecorations.registerFileDecorationProvider(provider, extension);
},
registerUriHandler(handler: vscode.UriHandler) {
return extHostUrls.registerUriHandler(extension.identifier, handler);
return extHostUrls.registerUriHandler(extension, handler);
},
createQuickPick<T extends vscode.QuickPickItem>(): vscode.QuickPick<T> {
return extHostQuickOpen.createQuickPick(extension);