421
422
async resetLocal(): Promise<void> {
424
>
this._lastSyncTime = undefined;
425
>
this.storageService.remove(LAST_SYNC_TIME_KEY, StorageScope.APPLICATION);
426
>
for (const [synchronizer] of this.activeProfileSynchronizers.values()) {
427
>
try {
428
>
await synchronizer.resetLocal();
429
>
} catch (e) {
430
this.logService.error(e);
431
}
433
>
this.clearActiveProfileSynchronizers();
434
>
this._onDidResetLocal.fire();
435
>
this.logService.info('Did reset the local sync state.');
436
>
}
437
438
private async cleanUpStaleStorageData(): Promise<void> {