Revert "Remove authentication provider package.json declaration"

This reverts commit 811dc8d45a.
This commit is contained in:
Sandeep Somavarapu
2021-03-05 13:57:25 +01:00
parent fead22bae4
commit bc62648b05
7 changed files with 102 additions and 2 deletions

View File

@@ -132,7 +132,7 @@ export class UserDataSyncWorkbenchService extends Disposable implements IUserDat
}
private updateAuthenticationProviders(): void {
this._authenticationProviders = (this.userDataSyncStoreManagementService.userDataSyncStore?.authenticationProviders || []).filter(({ id }) => this.authenticationService.getProviderIds().some(providerId => providerId === id));
this._authenticationProviders = (this.userDataSyncStoreManagementService.userDataSyncStore?.authenticationProviders || []).filter(({ id }) => this.authenticationService.declaredProviders.some(provider => provider.id === id));
}
private isSupportedAuthenticationProviderId(authenticationProviderId: string): boolean {
@@ -167,6 +167,8 @@ export class UserDataSyncWorkbenchService extends Disposable implements IUserDat
await this.update();
this._register(this.authenticationService.onDidChangeDeclaredProviders(() => this.updateAuthenticationProviders()));
this._register(
Event.any(
Event.filter(