microsoft / vscode-eslint

VSCode extension to integrate eslint into VSCode
MIT License
1.7k stars 331 forks source link

Support custom clickable links in eslint error tooltips #1887

Open camjackson-bigwx opened 1 week ago

camjackson-bigwx commented 1 week ago

There are some eslint rules which allow custom, explanatory error messages on rule violations. For example:

In these custom messages, sometimes it's helpful to refer to specific files within the repo...

Screenshot 2024-06-22 at 4 00 38 pm

... or to external web pages with a deeper explanation of the rule:

Screenshot 2024-06-22 at 3 58 15 pm

It would be amazing if links or file paths within eslint error messages could be rendered as clickable links within the tooltip, similar to the eslint(rule-name) link which appears right at the end of the message (which I can't customise without creating a whole new custom rule).

dbaeumer commented 1 week ago

This requires that VS Code itself supports markdown in diagnostics. See https://github.com/microsoft/vscode/issues/54272