-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Reorder error/warning message and hover information when hovering with mouse in VSC #6070
Comments
I have the same issue, everytime I need to scroll down to see the error. I will check to change this behavior when we have an error or warning, put this message first. Any concerns about this @matklad ? |
Seems reasonable to me! |
Hmm after investing the issue it seems we have here the display of |
Is there an upstream issue on VSCode to allow this to be fixed? Can this be worked around temporarily by hiding docs whenever an error would also be displayed? |
@obsgolem this one probably: Sort Hover Event (#71848) Possible fix as per this comment by jrieken:
|
Looking into this I don't think that would work. The score algorithm is based on the strength of the file's match. Rust-Analyzer should get 10, the max, on every |
Upstream issue: microsoft/vscode#73120 |
Diagnostics are now showing up on top for me, did we deliberately fix this? |
I don't think we did |
As a headsup, this has been un-fixed again somehow, diagnostics are now appearing below docs again... |
That is a hack I don't see us wanting to have. Sometimes you do want the docs on code with erroneous lines if you are in the middle of writing something which would be a massive annoyance as well. I'd rather Microsoft would just finally fix these importing UX bugs (but you are right, I don't see them going to do that in the near future either ...). There seems to be a possible fix up microsoft/vscode#166560 |
VSCode just merged microsoft/vscode#166560 so this should be fixed in an upcoming release |
Currently when hovering over parts of the code that have problems (errors, warnings etc.) associated with them, one needs to scroll down past the hover information to get to the error. Most of the times, the rendered hover information is longer than the maximum lines visible in one page of the hover pane forcing the error or warning message to not be visible without scrolling. This is a tad inconvenient and I find myself mostly using peek or the
Problems
view to see what the error messages are versus hovering with the mouse cursor and getting to see errors that way.As an example, when hovering over the following error under the
.format
method, this is what comes up first:instead of the error which is placed in the last of the scrollable pages of the hover pane:
I have looked through the documentation and configuration parameters for
rust-analyzer
in VSC and I don't see a place where I can configure this behavior by making the error or warning come up first in the hover pane.The text was updated successfully, but these errors were encountered: