Closed spouliot closed 1 week ago
Does the parser not support jsonc? Also there are other places using jsonc. https://code.visualstudio.com/docs/languages/json#_json-with-comments
// .vscode/settings.json
{
"files.associations": {
"global.json": "jsonc"
}
}
@jojorne interesting finding, that would be an interesting change indeed.
Current behavior
The
global.json
file used for templates is NOT valid JSON - since comments are not allowed in the format.While this works in practice it's not
This makes VSCode always shows an error inside the file (filename is in red in the file explorer).
You can also see this inside the github editor itself
link
Expected behavior
To avoid tooling errors we need to use JSON-valid pseudo comments like
That makes both Github and VS Code happier.
Affected platforms
No response
Template Host
dotnet new
Host OS
macOS
Template Options
Anything that produce a Uno app project with the
global.json
file.Template Version
Anything else we need to know?
No response