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

show 'rule name' / 'error code' from in diagnostics on hover #16394

Open
1 task done
failable opened this issue Aug 17, 2024 · 1 comment
Open
1 task done

show 'rule name' / 'error code' from in diagnostics on hover #16394

failable opened this issue Aug 17, 2024 · 1 comment
Labels
defect [core label] diagnostics Feedback for diagnostics, error messages, logs, etc popovers Feedback for tooltips, syntax hints, info popups, toasts, etc python Python programming language support rust Rust programming language support

Comments

@failable
Copy link

failable commented Aug 17, 2024

Check for existing issues

  • Completed

Describe the feature

Show diagnostic code in hover. Currently it is not shown in the hover

image

but is shown in the diagnostics view (reportUnknownMemberType in this case)

image

When there are many diagnostics, it's hard to locate the target one in the diagnostic list view and figure out the error code for further action (e.g. google search its meaning or insert a noqa comment).

It would also be nice If the error code in the hover is copyable.

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

No response

@failable failable added admin read Pending admin review enhancement [core label] triage Maintainer needs to classify the issue labels Aug 17, 2024
@notpeter notpeter added the python Python programming language support label Aug 19, 2024
@notpeter notpeter changed the title Show diagnostic code in hover Pyright diagnostic name in hover Aug 19, 2024
@notpeter notpeter added defect [core label] popovers Feedback for tooltips, syntax hints, info popups, toasts, etc diagnostics Feedback for diagnostics, error messages, logs, etc and removed enhancement [core label] triage Maintainer needs to classify the issue admin read Pending admin review labels Aug 19, 2024
@notpeter notpeter changed the title Pyright diagnostic name in hover show diagnostic name in hover Aug 19, 2024
@notpeter notpeter changed the title show diagnostic name in hover show 'rule name' / 'error code' from in diagnostics on hover Aug 19, 2024
@notpeter notpeter added the rust Rust programming language support label Aug 19, 2024
@notpeter
Copy link
Member

This appears to impact multiple languages, here is an example of it happening in Rust too (E0425)
Screenshot 2024-08-19 at 10 39 56

Thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect [core label] diagnostics Feedback for diagnostics, error messages, logs, etc popovers Feedback for tooltips, syntax hints, info popups, toasts, etc python Python programming language support rust Rust programming language support
Projects
None yet
Development

No branches or pull requests

2 participants