[tsserverlibrary] Allow reporting helpful links and error-names #39009
Labels
Awaiting More Feedback
This means we'd like to hear from more people who would be helped by this feature
Suggestion
An idea for TypeScript
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:
The text was updated successfully, but these errors were encountered: