mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
Fix #103675
This commit is contained in:
@@ -143,8 +143,10 @@ export class UserDataSyncWorkbenchService extends Disposable implements IUserDat
|
||||
await Promise.all(unregisteredProviders.map(({ id }) => this.extensionService.activateByEvent(getAuthenticationProviderActivationEvent(id))));
|
||||
}
|
||||
|
||||
/* wait until one of the providers is availabe */
|
||||
await Event.toPromise(Event.filter(this.authenticationService.onDidRegisterAuthenticationProvider, ({ id }) => this.isSupportedAuthenticationProviderId(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))));
|
||||
}
|
||||
|
||||
/* initialize */
|
||||
await this.initialize();
|
||||
|
||||
Reference in New Issue
Block a user