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.
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 likeExpected 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.