File tree Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
- import { convertRemoteProviderIdToIntegrationId } from '../../../plus/integrations/utils/-webview/integration.utils' ;
1
+ import { getIntegrationIdForRemote } from '../../../plus/integrations/utils/-webview/integration.utils' ;
2
2
import { configuration } from '../../../system/-webview/configuration' ;
3
3
import { formatDate , fromNow } from '../../../system/date' ;
4
4
import { map } from '../../../system/iterable' ;
@@ -78,13 +78,16 @@ export async function toRepositoryShapeWithProvider(
78
78
icon : remote . provider . icon === 'remote' ? 'cloud' : remote . provider . icon ,
79
79
integration : remote . supportsIntegration ( )
80
80
? {
81
- id : convertRemoteProviderIdToIntegrationId ( remote . provider . id ) ! ,
81
+ id : getIntegrationIdForRemote ( remote . provider ) ! ,
82
82
connected : remote . maybeIntegrationConnected ?? false ,
83
83
}
84
84
: undefined ,
85
85
supportedFeatures : remote . provider . supportedFeatures ,
86
86
url : await remote . provider . url ( { type : RemoteResourceType . Repo } ) ,
87
87
} ;
88
+ if ( provider . integration ?. id == null ) {
89
+ provider . integration = undefined ;
90
+ }
88
91
}
89
92
90
93
return { ...toRepositoryShape ( repo ) , provider : provider } ;
Original file line number Diff line number Diff line change @@ -1596,6 +1596,7 @@ function getOpenOnGitProviderQuickInputButton(integrationId: string): QuickInput
1596
1596
case GitSelfManagedHostIntegrationId . CloudGitHubEnterprise :
1597
1597
return OpenOnGitHubQuickInputButton ;
1598
1598
case GitCloudHostIntegrationId . AzureDevOps :
1599
+ case GitSelfManagedHostIntegrationId . AzureDevOpsServer :
1599
1600
return OpenOnAzureDevOpsQuickInputButton ;
1600
1601
case GitCloudHostIntegrationId . Bitbucket :
1601
1602
case GitSelfManagedHostIntegrationId . BitbucketServer :
@@ -1622,6 +1623,8 @@ function getIntegrationTitle(integrationId: string): string {
1622
1623
return 'GitHub' ;
1623
1624
case GitCloudHostIntegrationId . AzureDevOps :
1624
1625
return 'Azure DevOps' ;
1626
+ case GitSelfManagedHostIntegrationId . AzureDevOpsServer :
1627
+ return 'Azure DevOps Server' ;
1625
1628
case GitCloudHostIntegrationId . Bitbucket :
1626
1629
return 'Bitbucket' ;
1627
1630
case GitSelfManagedHostIntegrationId . BitbucketServer :
Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ export const supportedLaunchpadIntegrations: (GitCloudHostIntegrationId | CloudG
136
136
GitCloudHostIntegrationId . GitLab ,
137
137
GitSelfManagedHostIntegrationId . CloudGitLabSelfHosted ,
138
138
GitCloudHostIntegrationId . AzureDevOps ,
139
+ GitSelfManagedHostIntegrationId . AzureDevOpsServer ,
139
140
GitCloudHostIntegrationId . Bitbucket ,
140
141
GitSelfManagedHostIntegrationId . BitbucketServer ,
141
142
] ;
Original file line number Diff line number Diff line change @@ -153,6 +153,7 @@ export function toGraphHostingServiceType(id: string): GraphHostingServiceType |
153
153
case 'azureDevops' satisfies Unbrand < GkProviderId > :
154
154
case 'azure' :
155
155
case GitCloudHostIntegrationId . AzureDevOps :
156
+ case GitSelfManagedHostIntegrationId . AzureDevOpsServer :
156
157
return 'azureDevops' ;
157
158
158
159
case 'bitbucket' satisfies RemoteProviderId :
You can’t perform that action at this time.
0 commit comments