Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support custom clickable links in eslint error tooltips #1887

Open
camjackson-bigwx opened this issue Jun 22, 2024 · 1 comment
Open

Support custom clickable links in eslint error tooltips #1887

camjackson-bigwx opened this issue Jun 22, 2024 · 1 comment
Labels
feature-request Request for new features or functionality upstream
Milestone

Comments

@camjackson-bigwx
Copy link

camjackson-bigwx commented Jun 22, 2024

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

  • no-restricted-imports
  • no-restricted-syntax

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
Copy link
Member

This requires that VS Code itself supports markdown in diagnostics. See microsoft/vscode#54272

@dbaeumer dbaeumer added the feature-request Request for new features or functionality label Jun 24, 2024
@dbaeumer dbaeumer added this to the Backlog milestone Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality upstream
Projects
None yet
Development

No branches or pull requests

2 participants