Skip to content

Commit 8697f84

Browse files
authored
1 parent 7fc4f97 commit 8697f84

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

src/vs/platform/userDataSync/common/userDataAutoSyncService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ export class UserDataAutoSyncService extends Disposable implements IUserDataAuto
204204
await this.userDataSyncService.resetLocal();
205205
}
206206
} catch (error) {
207+
this.logService.error(error);
207208
if (softTurnOffOnError) {
208-
this.logService.error(error);
209209
this.updateEnablement(false);
210210
} else {
211211
throw error;

src/vs/platform/userDataSync/common/userDataSyncService.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -391,16 +391,14 @@ export class UserDataSyncService extends Disposable implements IUserDataSyncServ
391391
async resetLocal(): Promise<void> {
392392
this.checkEnablement();
393393
this.storageService.remove(LAST_SYNC_TIME_KEY, StorageScope.APPLICATION);
394-
if (this.activeProfileSynchronizers) {
395-
for (const [synchronizer] of this.activeProfileSynchronizers.values()) {
396-
try {
397-
await synchronizer.resetLocal();
398-
} catch (e) {
399-
this.logService.error(e);
400-
}
394+
for (const [synchronizer] of this.activeProfileSynchronizers.values()) {
395+
try {
396+
await synchronizer.resetLocal();
397+
} catch (e) {
398+
this.logService.error(e);
401399
}
402-
this.clearActiveProfileSynchronizers();
403400
}
401+
this.clearActiveProfileSynchronizers();
404402
this._onDidResetLocal.fire();
405403
this.logService.info('Did reset the local sync state.');
406404
}

0 commit comments

Comments
 (0)