提交 113fea1d 编写于 作者: S Sandeep Somavarapu

Fix #103238

上级 292c8574
...@@ -143,10 +143,8 @@ export class UserDataSyncWorkbenchService extends Disposable implements IUserDat ...@@ -143,10 +143,8 @@ export class UserDataSyncWorkbenchService extends Disposable implements IUserDat
await Promise.all(unregisteredProviders.map(({ id }) => this.extensionService.activateByEvent(getAuthenticationProviderActivationEvent(id)))); await Promise.all(unregisteredProviders.map(({ id }) => this.extensionService.activateByEvent(getAuthenticationProviderActivationEvent(id))));
} }
/* wait until all providers are availabe */ /* wait until one of the providers is availabe */
if (this._authenticationProviders.some(({ id }) => !this.authenticationService.isAuthenticationProviderRegistered(id))) { await Event.toPromise(Event.filter(this.authenticationService.onDidRegisterAuthenticationProvider, ({ id }) => this.isSupportedAuthenticationProviderId(id)));
await Event.toPromise(Event.filter(this.authenticationService.onDidRegisterAuthenticationProvider, () => this._authenticationProviders.every(({ id }) => this.authenticationService.isAuthenticationProviderRegistered(id))));
}
/* initialize */ /* initialize */
await this.initialize(); await this.initialize();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册