338
case UserDataSyncErrorCode.Conflict:
339
case UserDataSyncErrorCode.PreconditionFailed:
341
>
this.logService.info(`${this.syncResourceLogLabel}: Failed to synchronize as there is a new remote version available. Synchronizing again...`);
342
>
343
>
// Avoid cache and get latest remote user data - https://github.com/microsoft/vscode/issues/90624
344
>
remoteUserData = await this.getRemoteUserData(null);
345
>
346
>
// Get the latest last sync user data. Because multiple parallel syncs (in Web) could share same last sync data
347
>
// and one of them successfully updated remote and last sync state.
348
>
lastSyncUserData = await this.getLastSyncUserData();
349
>
350
>
return this.performSync(remoteUserData, lastSyncUserData, SyncStrategy.Merge, userDataSyncConfiguration);
351
}
352
}