You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Rejected as there is a new local version. Syncing again.
188
188
this.logService.info('Keybindings: Failed to synchronize keybindings as there is a new local version available. Synchronizing again...');
189
189
returnthis.sync(remoteUserData.ref);
@@ -202,9 +202,7 @@ export class KeybindingsSynchroniser extends AbstractJsonFileSynchroniser implem
202
202
203
203
if(content!==null){
204
204
if(this.hasErrors(content)){
205
-
consterror=newError(localize('errorInvalidKeybindings',"Unable to sync keybindings. Please resolve conflicts without any errors/warnings and try again."));
206
-
this.logService.error(error);
207
-
throwerror;
205
+
thrownewUserDataSyncError(localize('errorInvalidSettings',"Unable to sync keybindings as there are errors/warning in keybindings file."),UserDataSyncErrorCode.LocalInvalidContent,this.source);
208
206
}
209
207
210
208
if(hasLocalChanged){
@@ -261,8 +259,7 @@ export class KeybindingsSynchroniser extends AbstractJsonFileSynchroniser implem
thrownewUserDataSyncError(localize('errorInvalidSettings',"Unable to sync keybindings as there are errors/warning in keybindings file."),UserDataSyncErrorCode.LocalInvalidContent,this.source);
// Rejected as there is a new local version. Syncing again.
230
230
this.logService.info('Settings: Failed to synchronize settings as there is a new local version available. Synchronizing again...');
231
231
returnthis.sync(remoteUserData.ref);
@@ -245,9 +245,7 @@ export class SettingsSynchroniser extends AbstractJsonFileSynchroniser implement
245
245
if(content!==null){
246
246
247
247
if(this.hasErrors(content)){
248
-
consterror=newError(localize('errorInvalidSettings',"Unable to sync settings. Please resolve conflicts without any errors/warnings and try again."));
249
-
this.logService.error(error);
250
-
throwerror;
248
+
thrownewUserDataSyncError(localize('errorInvalidSettings',"Unable to sync settings as there are errors/warning in settings file."),UserDataSyncErrorCode.LocalInvalidContent,this.source);
251
249
}
252
250
253
251
if(hasLocalChanged){
@@ -304,7 +302,7 @@ export class SettingsSynchroniser extends AbstractJsonFileSynchroniser implement
304
302
305
303
// No action when there are errors
306
304
if(this.hasErrors(localContent)){
307
-
this.logService.error('Settings: Unable to sync settings as there are errors/warning in settings file.');
305
+
thrownewUserDataSyncError(localize('errorInvalidSettings',"Unable to sync settings as there are errors/warning in settings file."),UserDataSyncErrorCode.LocalInvalidContent,this.source);
thrownewUserDataSyncStoreError(`${options.type} request '${options.url?.toString()}' failed because of Precondition Failed (412). There is new data exists for this resource. Make the request again with latest data.`,UserDataSyncErrorCode.Rejected,source);
145
+
thrownewUserDataSyncStoreError(`${options.type} request '${options.url?.toString()}' failed because of Precondition Failed (412). There is new data exists for this resource. Make the request again with latest data.`,UserDataSyncErrorCode.RemotePreconditionFailed,source);
0 commit comments