@@ -451,7 +451,9 @@ export class IntegrationService implements Disposable {
451451 return key == null ? this . _connectedCache . size !== 0 : this . _connectedCache . has ( key ) ;
452452 }
453453
454- get ( id : SupportedHostingIntegrationIds ) : Promise < HostingIntegration > ;
454+ get (
455+ id : SupportedHostingIntegrationIds | SelfHostedIntegrationId . CloudGitHubEnterprise ,
456+ ) : Promise < HostingIntegration > ;
455457 get ( id : SupportedIssueIntegrationIds ) : Promise < IssueIntegration > ;
456458 get ( id : SupportedSelfHostedIntegrationIds , domain : string ) : Promise < HostingIntegration > ;
457459 get ( id : SupportedIntegrationIds , domain ?: string ) : Promise < Integration > ;
@@ -760,8 +762,10 @@ export class IntegrationService implements Disposable {
760762 @log < IntegrationService [ 'getMyCurrentAccounts' ] > ( {
761763 args : { 0 : integrationIds => ( integrationIds ?. length ? integrationIds . join ( ',' ) : '<undefined>' ) } ,
762764 } )
763- async getMyCurrentAccounts ( integrationIds : HostingIntegrationId [ ] ) : Promise < Map < HostingIntegrationId , Account > > {
764- const accounts = new Map < HostingIntegrationId , Account > ( ) ;
765+ async getMyCurrentAccounts (
766+ integrationIds : ( HostingIntegrationId | SelfHostedIntegrationId . CloudGitHubEnterprise ) [ ] ,
767+ ) : Promise < Map < HostingIntegrationId | SelfHostedIntegrationId . CloudGitHubEnterprise , Account > > {
768+ const accounts = new Map < HostingIntegrationId | SelfHostedIntegrationId . CloudGitHubEnterprise , Account > ( ) ;
765769 await Promise . allSettled (
766770 integrationIds . map ( async integrationId => {
767771 const integration = await this . get ( integrationId ) ;
@@ -780,13 +784,16 @@ export class IntegrationService implements Disposable {
780784 args : { 0 : integrationIds => ( integrationIds ?. length ? integrationIds . join ( ',' ) : '<undefined>' ) , 1 : false } ,
781785 } )
782786 async getMyPullRequests (
783- integrationIds ?: HostingIntegrationId [ ] ,
787+ integrationIds ?: ( HostingIntegrationId | SelfHostedIntegrationId . CloudGitHubEnterprise ) [ ] ,
784788 cancellation ?: CancellationToken ,
785789 silent ?: boolean ,
786790 ) : Promise < IntegrationResult < SearchedPullRequest [ ] | undefined > > {
787791 const integrations : Map < HostingIntegration , ResourceDescriptor [ ] | undefined > = new Map ( ) ;
788792 for ( const integrationId of integrationIds ?. length ? integrationIds : Object . values ( HostingIntegrationId ) ) {
789- const integration = await this . get ( integrationId ) ;
793+ let integration ;
794+ try {
795+ integration = await this . get ( integrationId ) ;
796+ } catch { }
790797 if ( integration == null ) continue ;
791798
792799 integrations . set ( integration , undefined ) ;
0 commit comments