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
VSCode stops screaming and is happy with parsing this is as jsonc. I wonder if it could make sense to ship something like this by default? Or a .jsonc by default for better cross-editor compatibility?
The text was updated successfully, but these errors were encountered:
I'd +1 the .jsonc by default, I'm not sure other editors like Zod look at the .vscode/settings.json and those other editors are becoming more and more popular.
Describe the solution
When initialising a new worker with C3 today, you're given a
wrangler.json
that looks something like this:VSCode (and likely other editors) get very upset at this by default, as
.json
doesn't support comments by default - only with JSONC flavour parsing.If I add a
.vscode/settings.json
with this:VSCode stops screaming and is happy with parsing this is as
jsonc
. I wonder if it could make sense to ship something like this by default? Or a.jsonc
by default for better cross-editor compatibility?The text was updated successfully, but these errors were encountered: