[JSON] `allowTrailingCommas: true` no longer works
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.101.2
- OS Version: any
Steps to Reproduce:
- Follow suggestion in https://github.com/microsoft/vscode/issues/237258#issuecomment-2574854653
Trying to suppress the incorrect jsonc(519) warning about trailing commas doesn’t work. I want to suppress it since it’s visual noise obscuring valid warnings.
There hasn't been any changes in that area recently.
I just tried, and it seems to work for me
- create foo.jsonc
{
"hello": "world"
}
- add to settings
"json.schemas": [
{
"fileMatch": [
"*.jsonc"
],
"schema": {
"allowTrailingCommas": true
}
}
]
How can it work for you and not for me if there were no recent changes?
Maybe you got confused about what this is about, because your foo.jsonc doesn’t seem to contain a trailing comma. This issue is about making this warning go away:
When you click on the { } and select 'Show schemas', how many entries are there?
One:
It should also contain an entry like this:
That entry comes from the settings.
Make sure you have "json.schemas" in your settings
I did make sure I have it, that’s why I filed this issue, see “Steps to Reproduce”.
Hi, any update here?
I just tested it again in the latest version of VS Code, following the steps from https://github.com/microsoft/vscode/issues/255169#issuecomment-3062704112
If it doesn't work for you, please provide similarly detailed steps for me to reproduce
I don’t see the warning anymore, but the /custom/ schema still doesn’t appear in the list.
That's strange, I see it. Maybe a syntax error in you settings.json?
Closing the issue.