-
Notifications
You must be signed in to change notification settings - Fork 184
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 previous/next diagnostic with phantom #783
Conversation
e920e3a
to
53026d0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see above comment
A bit ugly with wrapping divs
Good catch, even had a TODO for testing the missed wrap-forward from diagnostic logic The color was doable in this manner: But I feel the extra markup/css is a bit unfortunate. For me the additional info is part of the error and could just be red. |
I'm okay with having it red, but IMO there should be some sort of separation between the main diag and the related diags. Indentation for the related diags perhaps? Or a horizontal line? It's otherwise too vague (for me, probably also for other users) what the actual problem is, and what "additional info" is. |
This reverts commit f7714a5.
Looks good! |
I will merge this now and document it when we get to a release soon! |
Press F8 to open/next, shift+F8 for previous, esc to close. (see suggested keybindings)
Essentially like VS Code's "Next Problem" feature.
Suggested keybindings
Closes #746:
Implementation details:
lsp_diagnostic_phantom
setting applied. There is some risk with stealing a so often-used key.To do:
Update UI for code actions (if keeping at all)