@@ -3,17 +3,14 @@ import { authentication, EventEmitter, window } from 'vscode';
33import { wrapForForcedInsecureSSL } from '@env/fetch' ;
44import type { IntegrationId } from '../../../constants.integrations' ;
55import { HostingIntegrationId , IssueIntegrationId , SelfHostedIntegrationId } from '../../../constants.integrations' ;
6- import type {
7- IntegrationAuthenticationKeys ,
8- StoredConfiguredProviderAuthenticationDescriptor ,
9- } from '../../../constants.storage' ;
6+ import type { IntegrationAuthenticationKeys , StoredConfiguredIntegrationDescriptor } from '../../../constants.storage' ;
107import type { Sources } from '../../../constants.telemetry' ;
118import type { Container } from '../../../container' ;
129import { gate } from '../../../system/decorators/gate' ;
1310import { debug , log } from '../../../system/decorators/log' ;
1411import type { DeferredEventExecutor } from '../../../system/event' ;
1512import { isSelfHostedIntegrationId , supportedIntegrationIds } from '../providers/models' ;
16- import type { ConfiguredProviderAuthenticationDescriptor , ProviderAuthenticationSession } from './models' ;
13+ import type { ConfiguredIntegrationDescriptor , ProviderAuthenticationSession } from './models' ;
1714import { isSupportedCloudIntegrationId } from './models' ;
1815
1916const maxSmallIntegerV8 = 2 ** 30 - 1 ; // Max number that can be stored in V8's smis (small integers)
@@ -506,7 +503,7 @@ class BuiltInAuthenticationProvider extends LocalIntegrationAuthenticationProvid
506503
507504export class IntegrationAuthenticationService implements Disposable {
508505 private readonly providers = new Map < IntegrationId , IntegrationAuthenticationProvider > ( ) ;
509- private _configured ?: Map < IntegrationId , ConfiguredProviderAuthenticationDescriptor [ ] > ;
506+ private _configured ?: Map < IntegrationId , ConfiguredIntegrationDescriptor [ ] > ;
510507
511508 constructor ( private readonly container : Container ) { }
512509
@@ -515,7 +512,7 @@ export class IntegrationAuthenticationService implements Disposable {
515512 this . providers . clear ( ) ;
516513 }
517514
518- get configured ( ) : Map < IntegrationId , ConfiguredProviderAuthenticationDescriptor [ ] > {
515+ get configured ( ) : Map < IntegrationId , ConfiguredIntegrationDescriptor [ ] > {
519516 if ( this . _configured == null ) {
520517 this . _configured = new Map ( ) ;
521518 const storedConfigured = this . container . storage . get ( 'integrations:configured' ) ;
@@ -534,7 +531,7 @@ export class IntegrationAuthenticationService implements Disposable {
534531
535532 private async storeConfigured ( ) {
536533 // We need to convert the map to a record to store
537- const configured : Record < string , StoredConfiguredProviderAuthenticationDescriptor [ ] > = { } ;
534+ const configured : Record < string , StoredConfiguredIntegrationDescriptor [ ] > = { } ;
538535 for ( const [ id , descriptors ] of this . configured ) {
539536 configured [ id ] = descriptors . map ( d => ( {
540537 ...d ,
@@ -549,7 +546,7 @@ export class IntegrationAuthenticationService implements Disposable {
549546 await this . container . storage . store ( 'integrations:configured' , configured ) ;
550547 }
551548
552- async addConfigured ( descriptor : ConfiguredProviderAuthenticationDescriptor ) {
549+ async addConfigured ( descriptor : ConfiguredIntegrationDescriptor ) {
553550 const descriptors = this . configured . get ( descriptor . integrationId ) ?? [ ] ;
554551 // Only add if one does not exist
555552 if ( descriptors . some ( d => d . domain === descriptor . domain && d . integrationId === descriptor . integrationId ) ) {
@@ -560,7 +557,7 @@ export class IntegrationAuthenticationService implements Disposable {
560557 await this . storeConfigured ( ) ;
561558 }
562559
563- async removeConfigured ( descriptor : Pick < ConfiguredProviderAuthenticationDescriptor , 'integrationId' | 'domain' > ) {
560+ async removeConfigured ( descriptor : Pick < ConfiguredIntegrationDescriptor , 'integrationId' | 'domain' > ) {
564561 const descriptors = this . configured . get ( descriptor . integrationId ) ;
565562 if ( descriptors == null ) return ;
566563 const index = descriptors . findIndex (
0 commit comments