mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
Only include installed extensions (#229889)
Fixes https://github.com/microsoft/vscode/issues/229886
This commit is contained in:
committed by
GitHub
parent
589cd8ac39
commit
4ec35c8792
+6
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user