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
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.
The text was updated successfully, but these errors were encountered:
I think YAML would be great for another reason: YAML has powerful multi-line strings that I think are really nice when writing shell scripts. Coming from writing shells scripts in YAML for GitLab CI, it feels a bit painful to write scripts in devbox.json. I do appreciate that Devbox uses an array of strings for each script, that already makes it a lot nicer than a single string.
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: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 thedevbox.json
, which makes PR review annoying.The text was updated successfully, but these errors were encountered: