vscode-dashboard: Editing projects file error

I’ve made a mistake on the group name, therefore I’m trying to edit the Dashboard projects.json file; although when I go ahead to save the file I’m informed that the editing projects file does not meet the schema expected by dashboard ?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 21 (10 by maintainers)

Most upvoted comments

In the recent version of Dashboard modifying and saving the Dashboard Projects.json file doesn’t commit to the changes ?

Depends on what you mean by variable 😉 For colors, I use three colors defined by the current theme (so they change when switching theme):

Pre-defined variables such as the following; ${project.color}; And as you mentioned; dashboard-project-card-bg ?

Check here: https://github.com/Kruemelkatze/vscode-dashboard/blob/master/src/webviewContent.ts#L139 https://github.com/Kruemelkatze/vscode-dashboard/blob/master/src/webviewContent.ts#L66

@SheepDomination, yes! Sorry for not getting back to you, I forgot about this, to be honest… BUT! I spent quite some time in the last days on v1.3, which delivers some new features and “fixes” your problem. I will publish it in the next few days (some colleages are currently testing it).

The problem with your file were simply the two empty project groups. Remove them and saving will work. v1.3 will remove empty groups without name in future in order to not pollute the file.

[
    {
        "id": "mari[python]z5om8ti77jtygyccn",
        "groupName": "Mari [Python]",
        "projects": [
            {
                "isGitRepo": false,
                "id": "houdinivex752ugi8cpjtygzzkp",
                "name": "Houdini VEX",
                "path": "c:\\Custom Program Settings\\Projects.Code\\VEX",
                "imageFileName": null,
                "color": "var(--vscode-gitDecoration-conflictingResourceForeground)"
            }
        ]
    }
]

Sorry that you had to wait that long!