Skip to content

Commit

Permalink
fix the second and last scenario of #232516 (#233570)
Browse files Browse the repository at this point in the history
fix second case of #232516
  • Loading branch information
sandy081 authored Nov 12, 2024
1 parent b03caaf commit bc15076
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit bc15076

Please sign in to comment.