skip to Main Content

Today i noticed i didn’t have setting sync on, so i enabled it, and before it was enabled, there was a conflict with the settings file and there was a "merge" option so i clicked it, but that didn’t merge anything and all my settings and extension settings were lost. I tried looking for a way to revert the changes but couldn’t find anything that helped. Things like snippets and extensions have been synced properly for the most part, the only issue is with the settings and extension settings not being synced.

I tried the following:
-Going to "Settings Sync: Show Synced Data > SYNC ACTIVITY (LOCAL)" but it was completely empty.
-Going to "Settings Sync: Show Synced Data > SYNC ACTIVITY (REMOTE)" but it only shows old synced data and nothing from the local version of my settings.
-Logging out & in of github account
-Going to the backup folder. Nothing is there but the synced data (which is the default data)

Is there another way to revert changes to the settings.json file?

Enabling Settings Sync didn’t merge local settings with old synced data

2

Answers


  1. Actually there is a direct introduction on managing setting versions in official docs:

    https://code.visualstudio.com/docs/editor/settings-sync#_restoring-data

    Find the right version, click the "restore" button, and everything will be fine again.

    BTW, I encounted exactly the same problem last night after updating vscode,
    really pissed me off. I have never met this before, it might come from the new update

    Login or Signup to reply.
  2. Try opening your user settings.json file by using the Preferences: Open User Settings (JSON) command in the command palette and then opening the file timeline for it (use the Explorer: Focus on Timeline View command in the command palette) to see if any record of it is saved in the timeline. If so, then you can restore previous versions from there. If not, and you haven’t done anything else to keep backups of your config files (Ex. Git repo), then I think you’re out of luck.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search