@@ -86,7 +86,7 @@ export class Container {
86
86
prerelease : boolean ,
87
87
version : string ,
88
88
previousVersion : string | undefined ,
89
- ) {
89
+ ) : Container {
90
90
if ( Container . #instance != null ) throw new Error ( 'Container is already initialized' ) ;
91
91
92
92
Container . #instance = new Container ( context , storage , prerelease , version , previousVersion ) ;
@@ -276,18 +276,18 @@ export class Container {
276
276
scheduleAddMissingCurrentWorkspaceRepos ( this ) ;
277
277
}
278
278
279
- deactivate ( ) {
279
+ deactivate ( ) : void {
280
280
this . _deactivating = true ;
281
281
}
282
282
283
283
private _deactivating : boolean = false ;
284
- get deactivating ( ) {
284
+ get deactivating ( ) : boolean {
285
285
return this . _deactivating ;
286
286
}
287
287
288
288
private _ready : boolean = false ;
289
289
290
- async ready ( ) {
290
+ async ready ( ) : Promise < void > {
291
291
if ( this . _ready ) throw new Error ( 'Container is already ready' ) ;
292
292
293
293
this . _ready = true ;
@@ -296,7 +296,7 @@ export class Container {
296
296
}
297
297
298
298
@log ( )
299
- private async registerGitProviders ( ) {
299
+ private async registerGitProviders ( ) : Promise < void > {
300
300
const providers = await getSupportedGitProviders ( this ) ;
301
301
for ( const provider of providers ) {
302
302
this . _disposables . push ( this . _git . register ( provider . descriptor . id , provider ) ) ;
@@ -325,17 +325,17 @@ export class Container {
325
325
}
326
326
327
327
private _accountAuthentication : AccountAuthenticationProvider ;
328
- get accountAuthentication ( ) {
328
+ get accountAuthentication ( ) : AccountAuthenticationProvider {
329
329
return this . _accountAuthentication ;
330
330
}
331
331
332
332
private readonly _actionRunners : ActionRunners ;
333
- get actionRunners ( ) {
333
+ get actionRunners ( ) : ActionRunners {
334
334
return this . _actionRunners ;
335
335
}
336
336
337
337
private _ai : Promise < AIProviderService | undefined > | undefined ;
338
- get ai ( ) {
338
+ get ai ( ) : Promise < AIProviderService | undefined > {
339
339
if ( this . _ai == null ) {
340
340
async function load ( this : Container ) {
341
341
try {
@@ -356,7 +356,7 @@ export class Container {
356
356
}
357
357
358
358
private _autolinks : Autolinks | undefined ;
359
- get autolinks ( ) {
359
+ get autolinks ( ) : Autolinks {
360
360
if ( this . _autolinks == null ) {
361
361
this . _disposables . push ( ( this . _autolinks = new Autolinks ( this ) ) ) ;
362
362
}
@@ -365,7 +365,7 @@ export class Container {
365
365
}
366
366
367
367
private _cache : CacheProvider | undefined ;
368
- get cache ( ) {
368
+ get cache ( ) : CacheProvider {
369
369
if ( this . _cache == null ) {
370
370
this . _disposables . push ( ( this . _cache = new CacheProvider ( this ) ) ) ;
371
371
}
@@ -374,7 +374,7 @@ export class Container {
374
374
}
375
375
376
376
private _cloudIntegrations : Promise < CloudIntegrationService | undefined > | undefined ;
377
- get cloudIntegrations ( ) {
377
+ get cloudIntegrations ( ) : Promise < CloudIntegrationService | undefined > {
378
378
if ( this . _cloudIntegrations == null ) {
379
379
async function load ( this : Container ) {
380
380
try {
@@ -397,48 +397,48 @@ export class Container {
397
397
}
398
398
399
399
private _drafts : DraftService | undefined ;
400
- get drafts ( ) {
400
+ get drafts ( ) : DraftService {
401
401
if ( this . _drafts == null ) {
402
402
this . _disposables . push ( ( this . _drafts = new DraftService ( this , this . _connection ) ) ) ;
403
403
}
404
404
return this . _drafts ;
405
405
}
406
406
407
407
private _repositoryIdentity : RepositoryIdentityService | undefined ;
408
- get repositoryIdentity ( ) {
408
+ get repositoryIdentity ( ) : RepositoryIdentityService {
409
409
if ( this . _repositoryIdentity == null ) {
410
410
this . _disposables . push ( ( this . _repositoryIdentity = new RepositoryIdentityService ( this , this . _connection ) ) ) ;
411
411
}
412
412
return this . _repositoryIdentity ;
413
413
}
414
414
415
415
private readonly _codeLensController : GitCodeLensController ;
416
- get codeLens ( ) {
416
+ get codeLens ( ) : GitCodeLensController {
417
417
return this . _codeLensController ;
418
418
}
419
419
420
420
private readonly _context : ExtensionContext ;
421
- get context ( ) {
421
+ get context ( ) : ExtensionContext {
422
422
return this . _context ;
423
423
}
424
424
425
425
@memoize ( )
426
- get debugging ( ) {
426
+ get debugging ( ) : boolean {
427
427
return this . _context . extensionMode === ExtensionMode . Development ;
428
428
}
429
429
430
430
private readonly _deepLinks : DeepLinkService ;
431
- get deepLinks ( ) {
431
+ get deepLinks ( ) : DeepLinkService {
432
432
return this . _deepLinks ;
433
433
}
434
434
435
435
private readonly _documentTracker : GitDocumentTracker ;
436
- get documentTracker ( ) {
436
+ get documentTracker ( ) : GitDocumentTracker {
437
437
return this . _documentTracker ;
438
438
}
439
439
440
440
private _enrichments : EnrichmentService | undefined ;
441
- get enrichments ( ) {
441
+ get enrichments ( ) : EnrichmentService {
442
442
if ( this . _enrichments == null ) {
443
443
this . _disposables . push ( ( this . _enrichments = new EnrichmentService ( this , new ServerConnection ( this ) ) ) ) ;
444
444
}
@@ -458,12 +458,12 @@ export class Container {
458
458
}
459
459
460
460
private readonly _eventBus : EventBus ;
461
- get events ( ) {
461
+ get events ( ) : EventBus {
462
462
return this . _eventBus ;
463
463
}
464
464
465
465
private readonly _fileAnnotationController : FileAnnotationController ;
466
- get fileAnnotations ( ) {
466
+ get fileAnnotations ( ) : FileAnnotationController {
467
467
return this . _fileAnnotationController ;
468
468
}
469
469
@@ -473,12 +473,12 @@ export class Container {
473
473
}
474
474
475
475
private readonly _git : GitProviderService ;
476
- get git ( ) {
476
+ get git ( ) : GitProviderService {
477
477
return this . _git ;
478
478
}
479
479
480
480
private _github : Promise < GitHubApi | undefined > | undefined ;
481
- get github ( ) {
481
+ get github ( ) : Promise < GitHubApi | undefined > {
482
482
if ( this . _github == null ) {
483
483
async function load ( this : Container ) {
484
484
try {
@@ -502,7 +502,7 @@ export class Container {
502
502
}
503
503
504
504
private _gitlab : Promise < GitLabApi | undefined > | undefined ;
505
- get gitlab ( ) {
505
+ get gitlab ( ) : Promise < GitLabApi | undefined > {
506
506
if ( this . _gitlab == null ) {
507
507
async function load ( this : Container ) {
508
508
try {
@@ -526,7 +526,7 @@ export class Container {
526
526
}
527
527
528
528
@memoize ( )
529
- get id ( ) {
529
+ get id ( ) : string {
530
530
return this . _context . extension . id ;
531
531
}
532
532
@@ -540,63 +540,63 @@ export class Container {
540
540
}
541
541
542
542
private readonly _keyboard : Keyboard ;
543
- get keyboard ( ) {
543
+ get keyboard ( ) : Keyboard {
544
544
return this . _keyboard ;
545
545
}
546
546
547
547
private readonly _lineAnnotationController : LineAnnotationController ;
548
- get lineAnnotations ( ) {
548
+ get lineAnnotations ( ) : LineAnnotationController {
549
549
return this . _lineAnnotationController ;
550
550
}
551
551
552
552
private readonly _lineHoverController : LineHoverController ;
553
- get lineHovers ( ) {
553
+ get lineHovers ( ) : LineHoverController {
554
554
return this . _lineHoverController ;
555
555
}
556
556
557
557
private readonly _lineTracker : LineTracker ;
558
- get lineTracker ( ) {
558
+ get lineTracker ( ) : LineTracker {
559
559
return this . _lineTracker ;
560
560
}
561
561
562
562
private _mode : Mode | undefined ;
563
- get mode ( ) {
563
+ get mode ( ) : Mode | undefined {
564
564
if ( this . _mode == null ) {
565
565
this . _mode = configuration . get ( 'modes' ) ?. [ configuration . get ( 'mode.active' ) ] ;
566
566
}
567
567
return this . _mode ;
568
568
}
569
569
570
570
private _organizations : OrganizationService ;
571
- get organizations ( ) {
571
+ get organizations ( ) : OrganizationService {
572
572
return this . _organizations ;
573
573
}
574
574
575
575
private readonly _prerelease ;
576
- get prerelease ( ) {
576
+ get prerelease ( ) : boolean {
577
577
return this . _prerelease ;
578
578
}
579
579
580
580
@memoize ( )
581
- get prereleaseOrDebugging ( ) {
581
+ get prereleaseOrDebugging ( ) : boolean {
582
582
return this . _prerelease || this . debugging ;
583
583
}
584
584
585
585
private readonly _rebaseEditor : RebaseEditorProvider ;
586
- get rebaseEditor ( ) {
586
+ get rebaseEditor ( ) : RebaseEditorProvider {
587
587
return this . _rebaseEditor ;
588
588
}
589
589
590
590
private _repositoryPathMapping : RepositoryPathMappingProvider | undefined ;
591
- get repositoryPathMapping ( ) {
591
+ get repositoryPathMapping ( ) : RepositoryPathMappingProvider {
592
592
if ( this . _repositoryPathMapping == null ) {
593
593
this . _disposables . push ( ( this . _repositoryPathMapping = getSupportedRepositoryPathMappingProvider ( this ) ) ) ;
594
594
}
595
595
return this . _repositoryPathMapping ;
596
596
}
597
597
598
598
private readonly _statusBarController : StatusBarController ;
599
- get statusBar ( ) {
599
+ get statusBar ( ) : StatusBarController {
600
600
return this . _statusBarController ;
601
601
}
602
602
@@ -606,7 +606,7 @@ export class Container {
606
606
}
607
607
608
608
private _subscription : SubscriptionService ;
609
- get subscription ( ) {
609
+ get subscription ( ) : SubscriptionService {
610
610
return this . _subscription ;
611
611
}
612
612
@@ -616,7 +616,7 @@ export class Container {
616
616
}
617
617
618
618
private readonly _uri : UriService ;
619
- get uri ( ) {
619
+ get uri ( ) : UriService {
620
620
return this . _uri ;
621
621
}
622
622
@@ -641,12 +641,12 @@ export class Container {
641
641
}
642
642
643
643
private readonly _vsls : VslsController ;
644
- get vsls ( ) {
644
+ get vsls ( ) : VslsController {
645
645
return this . _vsls ;
646
646
}
647
647
648
648
private _workspaces : WorkspacesService | undefined ;
649
- get workspaces ( ) {
649
+ get workspaces ( ) : WorkspacesService {
650
650
if ( this . _workspaces == null ) {
651
651
this . _disposables . push ( ( this . _workspaces = new WorkspacesService ( this , this . _connection ) ) ) ;
652
652
}
0 commit comments