@@ -643,12 +643,16 @@ export class IntegrationService implements Disposable {
643643 args : { 0 : integrationIds => ( integrationIds ?. length ? integrationIds . join ( ',' ) : '<undefined>' ) , 1 : false } ,
644644 } )
645645 async getMyIssues (
646- integrationIds ?: ( SupportedHostingIntegrationIds | SupportedIssueIntegrationIds ) [ ] ,
646+ integrationIds ?: (
647+ | SupportedHostingIntegrationIds
648+ | SupportedIssueIntegrationIds
649+ | SupportedSelfHostedIntegrationIds
650+ ) [ ] ,
647651 options ?: { openRepositoriesOnly ?: boolean ; cancellation ?: CancellationToken } ,
648652 ) : Promise < SearchedIssue [ ] | undefined > {
649653 const integrations : Map < Integration , ResourceDescriptor [ ] | undefined > = new Map ( ) ;
650654 const hostingIntegrationIds = integrationIds ?. filter (
651- id => id in HostingIntegrationId ,
655+ id => id in HostingIntegrationId || id in SelfHostedIntegrationId ,
652656 ) as SupportedHostingIntegrationIds [ ] ;
653657 const openRemotesByIntegrationId = new Map < IntegrationId , ResourceDescriptor [ ] > ( ) ;
654658 for ( const repository of this . container . git . openRepositories ) {
@@ -659,7 +663,7 @@ export class IntegrationService implements Disposable {
659663 if ( remoteIntegration == null ) continue ;
660664 for ( const integrationId of hostingIntegrationIds ?. length
661665 ? hostingIntegrationIds
662- : Object . values ( HostingIntegrationId ) ) {
666+ : [ ... Object . values ( HostingIntegrationId ) , ... Object . values ( SelfHostedIntegrationId ) ] ) {
663667 if (
664668 remoteIntegration . id === integrationId &&
665669 remote . provider ?. owner != null &&
@@ -681,12 +685,16 @@ export class IntegrationService implements Disposable {
681685 }
682686 for ( const integrationId of integrationIds ?. length
683687 ? integrationIds
684- : [ ...Object . values ( HostingIntegrationId ) , ...Object . values ( IssueIntegrationId ) ] ) {
688+ : [
689+ ...Object . values ( HostingIntegrationId ) ,
690+ ...Object . values ( IssueIntegrationId ) ,
691+ ...Object . values ( SelfHostedIntegrationId ) ,
692+ ] ) {
685693 const integration = await this . get ( integrationId ) ;
686694 if (
687695 integration == null ||
688696 ( options ?. openRepositoriesOnly &&
689- isHostingIntegrationId ( integrationId ) &&
697+ ( isHostingIntegrationId ( integrationId ) || isSelfHostedIntegrationId ( integrationId ) ) &&
690698 ! openRemotesByIntegrationId . has ( integrationId ) )
691699 ) {
692700 continue ;
@@ -695,7 +703,7 @@ export class IntegrationService implements Disposable {
695703 integrations . set (
696704 integration ,
697705 options ?. openRepositoriesOnly &&
698- isHostingIntegrationId ( integrationId ) &&
706+ ( isHostingIntegrationId ( integrationId ) || isSelfHostedIntegrationId ( integrationId ) ) &&
699707 openRemotesByIntegrationId . has ( integrationId )
700708 ? openRemotesByIntegrationId . get ( integrationId )
701709 : undefined ,
0 commit comments