Environment information
CLI:
Version: 11.0.0
Color support: true
Platform:
CPU Architecture: aarch64
OS: macos
What happened?
(It's not technically a bug, more a feature request but there is no relevant category for that during issue creation)
It would be useful to have a link to the documentation of the relevant rule for diagnostics reported when running in LSP mode. For example here we see a diagnostic specifying a rule name but we can't click the rule name to show more information about the rule.

Here is an example of a different diagnostics from eslint with a documentation link:

Expected result
Per LSP documentation, the Diagnostic object can specify codeDescription property which includes an URL. This can be used for this purpose and this is what eslint uses. For example:
{
"diagnostics": [
{
"code": "space-in-parens",
"codeDescription": {
"href": "https://eslint.org/docs/rules/space-in-parens"
},
"message": "There should be no space before this paren.",
"range": {
"end": {
"character": 41,
"line": 1019
},
"start": {
"character": 40,
"line": 1019
}
},
"severity": 1,
"source": "eslint"
}
],
"uri": "...ts"
}
Code of Conduct
Environment information
What happened?
(It's not technically a bug, more a feature request but there is no relevant category for that during issue creation)
It would be useful to have a link to the documentation of the relevant rule for diagnostics reported when running in LSP mode. For example here we see a diagnostic specifying a rule name but we can't click the rule name to show more information about the rule.
Here is an example of a different diagnostics from eslint with a documentation link:
Expected result
Per LSP documentation, the
Diagnosticobject can specifycodeDescriptionproperty which includes an URL. This can be used for this purpose and this is what eslint uses. For example:{ "diagnostics": [ { "code": "space-in-parens", "codeDescription": { "href": "https://eslint.org/docs/rules/space-in-parens" }, "message": "There should be no space before this paren.", "range": { "end": { "character": 41, "line": 1019 }, "start": { "character": 40, "line": 1019 } }, "severity": 1, "source": "eslint" } ], "uri": "...ts" }Code of Conduct