mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
parent
7fc4f97bbb
commit
8697f84651
|
@ -204,8 +204,8 @@ export class UserDataAutoSyncService extends Disposable implements IUserDataAuto
|
|||
await this.userDataSyncService.resetLocal();
|
||||
}
|
||||
} catch (error) {
|
||||
this.logService.error(error);
|
||||
if (softTurnOffOnError) {
|
||||
this.logService.error(error);
|
||||
this.updateEnablement(false);
|
||||
} else {
|
||||
throw error;
|
||||
|
|
|
@ -391,16 +391,14 @@ export class UserDataSyncService extends Disposable implements IUserDataSyncServ
|
|||
async resetLocal(): Promise<void> {
|
||||
this.checkEnablement();
|
||||
this.storageService.remove(LAST_SYNC_TIME_KEY, StorageScope.APPLICATION);
|
||||
if (this.activeProfileSynchronizers) {
|
||||
for (const [synchronizer] of this.activeProfileSynchronizers.values()) {
|
||||
try {
|
||||
await synchronizer.resetLocal();
|
||||
} catch (e) {
|
||||
this.logService.error(e);
|
||||
}
|
||||
for (const [synchronizer] of this.activeProfileSynchronizers.values()) {
|
||||
try {
|
||||
await synchronizer.resetLocal();
|
||||
} catch (e) {
|
||||
this.logService.error(e);
|
||||
}
|
||||
this.clearActiveProfileSynchronizers();
|
||||
}
|
||||
this.clearActiveProfileSynchronizers();
|
||||
this._onDidResetLocal.fire();
|
||||
this.logService.info('Did reset the local sync state.');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue