zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
39.44k stars 2.05k forks source link

show eslint rule name #4388

Open lukeed opened 8 months ago

lukeed commented 8 months ago

Check for existing issues

Describe the feature

The tooltip message (or status message) should say what the ESLint rule name is that's failing. That way we can know which rule(s) to disable en masse.

Should also be listed in the Errors/Problems panel

If applicable, add mockups / screenshots to help present your vision of the feature

Screen Shot 2023-11-01 at 3 51 15 PM Screen Shot 2023-11-01 at 3 51 57 PM Screen Shot 2023-11-01 at 3 52 11 PM
shellscape commented 4 months ago

Giving this some bump love.

chadoh commented 1 month ago

agree, almost makes it worth switching to another editor when trying to add linting to previously-unlinted files

jaydenseric commented 1 month ago

Also, the displayed rule name should be a link to the rule docs. I can't figure out in the current Zed UI for ESLint rule violations how to find a link to the rule. The rule docs provide import context for why the code is problematic, and usually has examples about how to fix it.

Frustratingly, Zed (even though the cursor shows a text icon) doesn't allow selecting the text of the ESLint rule name, so you can't even manually copy past the rule name into a google search:

Screenshot 2024-05-28 at 10 39 13 AM