Skip to content

Commit

Permalink
Fix #103238
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed Aug 29, 2020
1 parent 292c857 commit 113fea1
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -143,10 +143,8 @@ export class UserDataSyncWorkbenchService extends Disposable implements IUserDat
await Promise.all(unregisteredProviders.map(({ id }) => this.extensionService.activateByEvent(getAuthenticationProviderActivationEvent(id))));
}

/* wait until all providers are availabe */
if (this._authenticationProviders.some(({ id }) => !this.authenticationService.isAuthenticationProviderRegistered(id))) {
await Event.toPromise(Event.filter(this.authenticationService.onDidRegisterAuthenticationProvider, () => this._authenticationProviders.every(({ id }) => this.authenticationService.isAuthenticationProviderRegistered(id))));
}
/* wait until one of the providers is availabe */
await Event.toPromise(Event.filter(this.authenticationService.onDidRegisterAuthenticationProvider, ({ id }) => this.isSupportedAuthenticationProviderId(id)));

/* initialize */
await this.initialize();
Expand Down

0 comments on commit 113fea1

Please sign in to comment.