Skip to content

Support devbox.jsonc for better editor & diff highlighting #2602

Open
@gjoseph92

Description

@gjoseph92

What problem are you trying to solve?

devbox.json supports comments, which is quite helpful. By default though, IDEs and GitHub diffs don't expect .json files to have comments, and highlight them as errors.

What solution would you like?

If devbox supported searching for devbox.jsonc files as well as .json, I could just name them accurately and most syntax highlighters would just work.

Alternatives you've considered

In VSCode, I've added this to my settings.json, which at least helps in the IDE:

    "files.associations": {
      "devbox.json": "jsonc"
    }

However, even with devbox.json linguist-language=JSON-with-Comments in .gitattributes, I can't get GitHub diffs to not highlight comments in red in diffs of the devbox.json, which makes PR review annoying.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or requesttriageIssue needs triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions