Skip to content

Commit bc15076

Browse files
authored
fix the second and last scenario of microsoft#232516 (microsoft#233570)
fix second case of microsoft#232516
1 parent b03caaf commit bc15076

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/vs/workbench/services/userDataSync/browser/userDataSyncWorkbenchService.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,13 +186,13 @@ export class UserDataSyncWorkbenchService extends Disposable implements IUserDat
186186
}
187187
}
188188

189-
await this.update();
190-
189+
const initPromise = this.update('initialize');
191190
this._register(this.authenticationService.onDidChangeDeclaredProviders(() => {
192191
if (this.updateAuthenticationProviders()) {
193-
this.update('declared authentication providers changed');
192+
initPromise.finally(() => this.update('declared authentication providers changed'));
194193
}
195194
}));
195+
await initPromise;
196196

197197
this._register(Event.filter(
198198
Event.any(

0 commit comments

Comments
 (0)