File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/vs/workbench/contrib/authentication/browser/actions Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,12 @@ class ManageTrustedExtensionsForAccountActionImpl {
107
107
}
108
108
109
109
private async _getItems ( providerId : string , accountLabel : string ) {
110
- const allowedExtensions = this . _authenticationAccessService . readAllowedExtensions ( providerId , accountLabel ) ;
110
+ let allowedExtensions = this . _authenticationAccessService . readAllowedExtensions ( providerId , accountLabel ) ;
111
+ // only include extensions that are installed
112
+ const resolvedExtensions = await Promise . all ( allowedExtensions . map ( ext => this . _extensionService . getExtension ( ext . id ) ) ) ;
113
+ allowedExtensions = resolvedExtensions
114
+ . map ( ( ext , i ) => ext ? allowedExtensions [ i ] : undefined )
115
+ . filter ( ext => ! ! ext ) ;
111
116
const trustedExtensionAuthAccess = this . _productService . trustedExtensionAuthAccess ;
112
117
const trustedExtensionIds =
113
118
// Case 1: trustedExtensionAuthAccess is an array
You can’t perform that action at this time.
0 commit comments