Visual Studio Code Workspace settings.json file keeps reverting when I open the application. How do I stop this from happening?

Viewed 79

I want to change the status bar, for a project, to a different color so I can have a subtle indicator of which project I am on by looking at the status bar.

This is a picture of what I'm trying to accomplish.

  1. I open the folder of the project in Visual Studio Code.
  2. Press, "ctrl + shift + p".
  3. Type and select, "Preferences: Open Workspace Settings (JSON)". Like This.
  4. I change the contents of the settings.json from:

Picture of settings

{
    "workbench.colorCustomizations": {
        "statusBar.noFolderBackground": "#212121",
    },
    "workbench.settings.editor": "json",
    "workbench.settings.useSplitJSON": true
}

To:

Picture of settings

{
    "workbench.colorCustomizations": {
        "statusBar.noFolderBackground": "#212121",
        "statusBar.background": "#7ace63",
        "statusBar.debuggingBackground": "#31711e",
    },
    "workbench.settings.editor": "json",
    "workbench.settings.useSplitJSON": true
}

From Here everythings works. The status bar looks like this. I save and close the application. When I open the folder in VS Code again the settings.json is initialy what I changed it to be, and the status bar starts off how I left it. Then the settings.json reverts back to what it was, and the status bar changes color to the default blue. I know it's saving because if I just open up the settings.json, and not the whole folder, I can see the changes and they do not revert.

Why does the settings.json keep reverting? How can I stop it from reverting, so I can keep the status bar the color of my choice for this specific projec?

0 Answers
Related