VSCode now accepts either strings or numbers alongside with a support-link as the code-property of a Diagnostic, which provides the comfort to easily open up a website showing more details about the error:
It would be very awesome if TypeScript language services had the same option to not only pass a number as error-code but also strings and, most importantly, a link containing helpful info.
Use Cases
Basically whenever you use a plugin which reports errors especially when they're a tiny bit too complex to describe them in a few sentences.
Search Terms
Support Links Helpful Links Diagnostic
Suggestion
VSCode now accepts either
string
s ornumber
s alongside with a support-link as thecode
-property of aDiagnostic
, which provides the comfort to easily open up a website showing more details about the error:https://github.com/microsoft/vscode-languageserver-node/blob/9466bf38aef41849b3d48a882e399a34e3127eb2/types/src/main.ts#L581-L624
It would be very awesome if TypeScript language services had the same option to not only pass a
number
as error-code but alsostring
s and, most importantly, a link containing helpful info.Use Cases
Basically whenever you use a
plugin
which reports errors especially when they're a tiny bit too complex to describe them in a few sentences.Examples
Checklist
My suggestion meets these guidelines: