microsoft / vscode-json-languageservice

JSON language service extracted from VSCode to be reused, e.g in the Monaco editor.
Other
261 stars 110 forks source link

Add error code for `property keys must be doublequoted` #196

Closed zardoy closed 1 year ago

zardoy commented 1 year ago

Since the error message getting localized it is hard to read these error programmatically via vscode diagnostic API, so I think it would great to not use ErrorCode.Undefined at all (I also saw error like Expected a JSON object, array or literal don't have error code as well).

By the way, I see that diagnostics, created Diagnostic.create don't have source.