Only include installed extensions (#229889)

Fixes https://github.com/microsoft/vscode/issues/229886
This commit is contained in:
Tyler James Leonhardt
2024-09-26 15:16:11 -07:00
committed by GitHub
parent 589cd8ac39
commit 4ec35c8792
@@ -107,7 +107,12 @@ class ManageTrustedExtensionsForAccountActionImpl {
}
private async _getItems(providerId: string, accountLabel: string) {
const allowedExtensions = this._authenticationAccessService.readAllowedExtensions(providerId, accountLabel);
let allowedExtensions = this._authenticationAccessService.readAllowedExtensions(providerId, accountLabel);
// only include extensions that are installed
const resolvedExtensions = await Promise.all(allowedExtensions.map(ext => this._extensionService.getExtension(ext.id)));
allowedExtensions = resolvedExtensions
.map((ext, i) => ext ? allowedExtensions[i] : undefined)
.filter(ext => !!ext);
const trustedExtensionAuthAccess = this._productService.trustedExtensionAuthAccess;
const trustedExtensionIds =
// Case 1: trustedExtensionAuthAccess is an array