Closed lanza closed 2 years ago
We don't filter diagnostics, needs https://github.com/Microsoft/vscode-json-languageservice support that first.
I believe that that one does support handling trailing commas and comments, but it might require some changes in the schemas.
Excuse me, I want to disable "trailing comma" diagnostics too. Is there a way to disable it right now, or does it need some extra enhancement to either coc-json
or vscode-json-languageservice
? In any case, why was this issue closed?
Somebody would have to implement it in vscode-json-languageservice
and then import it here.
vscode-json-languageservice
have support for trailingCommas
setting, you can hack the code at https://github.com/microsoft/vscode/blob/main/extensions/json-language-features/server/src/jsonServer.ts#L394
Checkout https://github.com/microsoft/vscode-json-languageservice/issues/115, change the filetype to jsonc or use custom schema with allowTrailingCommas
to true
.
Trailing commas have grown quite popular at this point. This warning could be toggleable.