File tree 4 files changed +415
-4
lines changed
4 files changed +415
-4
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ import type { CloudIntegrationService } from './plus/integrations/authentication
35
35
import { ConfiguredIntegrationService } from './plus/integrations/authentication/configuredIntegrationService' ;
36
36
import { IntegrationAuthenticationService } from './plus/integrations/authentication/integrationAuthenticationService' ;
37
37
import { IntegrationService } from './plus/integrations/integrationService' ;
38
+ import type { AzureDevOpsApi } from './plus/integrations/providers/azure/azure' ;
38
39
import type { GitHubApi } from './plus/integrations/providers/github/github' ;
39
40
import type { GitLabApi } from './plus/integrations/providers/gitlab/gitlab' ;
40
41
import { EnrichmentService } from './plus/launchpad/enrichmentService' ;
@@ -477,6 +478,28 @@ export class Container {
477
478
return this . _git ;
478
479
}
479
480
481
+ private _azure : Promise < AzureDevOpsApi | undefined > | undefined ;
482
+ get azure ( ) : Promise < AzureDevOpsApi | undefined > {
483
+ if ( this . _azure == null ) {
484
+ async function load ( this : Container ) {
485
+ try {
486
+ const azure = new (
487
+ await import ( /* webpackChunkName: "integrations" */ './plus/integrations/providers/azure/azure' )
488
+ ) . AzureDevOpsApi ( this ) ;
489
+ this . _disposables . push ( azure ) ;
490
+ return azure ;
491
+ } catch ( ex ) {
492
+ Logger . error ( ex ) ;
493
+ return undefined ;
494
+ }
495
+ }
496
+
497
+ this . _azure = load . call ( this ) ;
498
+ }
499
+
500
+ return this . _azure ;
501
+ }
502
+
480
503
private _github : Promise < GitHubApi | undefined > | undefined ;
481
504
get github ( ) : Promise < GitHubApi | undefined > {
482
505
if ( this . _github == null ) {
You can’t perform that action at this time.
0 commit comments