File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed
src/vs/platform/userDataSync/common Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -204,8 +204,8 @@ export class UserDataAutoSyncService extends Disposable implements IUserDataAuto
204
204
await this . userDataSyncService . resetLocal ( ) ;
205
205
}
206
206
} catch ( error ) {
207
+ this . logService . error ( error ) ;
207
208
if ( softTurnOffOnError ) {
208
- this . logService . error ( error ) ;
209
209
this . updateEnablement ( false ) ;
210
210
} else {
211
211
throw error ;
Original file line number Diff line number Diff line change @@ -391,16 +391,14 @@ export class UserDataSyncService extends Disposable implements IUserDataSyncServ
391
391
async resetLocal ( ) : Promise < void > {
392
392
this . checkEnablement ( ) ;
393
393
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 ) ;
401
399
}
402
- this . clearActiveProfileSynchronizers ( ) ;
403
400
}
401
+ this . clearActiveProfileSynchronizers ( ) ;
404
402
this . _onDidResetLocal . fire ( ) ;
405
403
this . logService . info ( 'Did reset the local sync state.' ) ;
406
404
}
You can’t perform that action at this time.
0 commit comments