diff --git a/src/vs/workbench/services/userDataSync/browser/userDataSyncWorkbenchService.ts b/src/vs/workbench/services/userDataSync/browser/userDataSyncWorkbenchService.ts index 436ce4b3a030d..37fe9df84001b 100644 --- a/src/vs/workbench/services/userDataSync/browser/userDataSyncWorkbenchService.ts +++ b/src/vs/workbench/services/userDataSync/browser/userDataSyncWorkbenchService.ts @@ -186,13 +186,13 @@ export class UserDataSyncWorkbenchService extends Disposable implements IUserDat } } - await this.update(); - + const initPromise = this.update('initialize'); this._register(this.authenticationService.onDidChangeDeclaredProviders(() => { if (this.updateAuthenticationProviders()) { - this.update('declared authentication providers changed'); + initPromise.finally(() => this.update('declared authentication providers changed')); } })); + await initPromise; this._register(Event.filter( Event.any(