261
private async syncRemoteProfiles(remoteProfiles: ISyncUserDataProfile[], manifest: IUserDataManifest | IUserDataSyncLatestData | null, preview: boolean, executionId: string, token: CancellationToken): Promise<void> {
262
for (const syncProfile of remoteProfiles) {
264
return;
265
}
266
>
const profile = this.userDataProfilesService.profiles.find(p => p.id === syncProfile.id);
userDataSyncService.ts
267
>
if (!profile) {
268
this.logService.error(`Profile with id:${syncProfile.id} and name: ${syncProfile.name} does not exist locally to sync.`);
269
continue;
270
}
272
>
const profileSynchronizer = this.getOrCreateActiveProfileSynchronizer(profile, syncProfile);
273
>
this._syncErrors.push(...await this.syncProfile(profileSynchronizer, manifest, preview, executionId, token));
274
>
}
275
// Dispose & Delete profile synchronizers which do not exist anymore
276
for (const [key, profileSynchronizerItem] of this.activeProfileSynchronizers.entries()) {