-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
For long hovers, errors appear all the way at the bottom and require scrolling #73120
Comments
I would prefer the errors/warnings are closer to the cursor i.e at the bottom. It means those views on top of it should not take the complete height. |
I think this may depend which way the hover appears? When your cursor is near the top, the box will appear below it, so having them at the bottom is still potentially quite far. In any case, you shouldn't need to scroll through all of the hover content to see them :( |
I hit this same issue while implementing a language server. My hover text provider was showing help text for functions that could be large. I saw that the diagnostic wasn't presented and concluded (incorrectly) that hovers and diagnostics were not compatible and disabled hover. Somehow having the diagnostics be sticky would be my preference. The scrolling would then be per hover section rather than the entire hover panel. |
This was reported by another user: @sandy081 is there a plan to improve this? I understand you want them closer to the cursor, but having to scroll through pages of documentation to figure out what the red squiggle is feels like a really bad UX. Maybe errors could be outside of the scrollable docs (similar to the "Quick fix" section in the screenshots above?) |
Pleas fix this, this is really bad UX. |
Sorry have not planned yet. |
Large hover payloads are the norm in Java-land. This is definitely an issue for Java users. |
This is particularly frustrating in Rust because the Rust compiler often emits diagnostics that cover entire lines, for example, borrow check errors, which overlap a lot of functions, causing the display of both docs and errors on hover, and surfacing this usability issue. |
Would it be maybe possible to let plugins control the ordering? That way, it would be possible to use error "close to the line" for some languages that typically don't have long documentation (e.g. TypeScript, JS, ...) whereas for languages that do have long documentation (Java, Rust, ...) the plugins would be able to show error at the top. |
I don't see why you'd want to have the error at the bottom, since it's presumably the most important thing about that line. |
Can we get action on in this. It's a constant annoyance they affects every user. |
Is there a priority setting anywhere or is this still an open issue altogether? |
I'm amazed this doesn't have the priority it deserves after 3 years, problems are always higher priority on coding. A tooltip should reflect that and also provide ordering of fields. |
@sandy081 this is the current UX: That's :/ |
I really don't want to be the guy commenting +1, but in this instance it seem warranted. It would save me a at least an hour over the course of a year if this was configurable. |
My current workaround is using Error Lens to show error directly on the editor instead of hovering (and scrolling!). A bit messy but acceptable to me. |
please fix it. |
It's even worse: When you scroll down quickly to the bottom, when you reach the bottom it will start scrolling the code editor itself which causes the popup to disappear, so I have to scroll slowly and carefully. |
It's apparently diagnostic message is more important than other hover message, put diagnostic message on the top should be the basic feature for editor. 😓 |
It would be a great improvement. Always I open the hover with a key shortcut and move the mouse to scroll down it disappears and I need to open again. It bothers a lot. |
I opened this pr which should fix the issue, but it hasn't gotten any attention for the past 3 weeks :/ #166560 |
Related question on Stack Overflow: How to show error/warning above the documentation in mouse hover popup? |
Steps to test:
|
I'm not sure if this is new, but I'm seeing it a lot lately. When I hover over some code with a red squiggle, if the hover/tooltip has a long description, I have to scroll all the way to the bottom to find the error.
I think it would be better if errors/warnings were either at the top, or somehow docked at the bottom of the tooltip, so you don't have to scroll to get to them. Some tooltips a REALLY long and it's a pain. I'm aware of the F8 functionality, I just prefer the tooltips :-)
The text was updated successfully, but these errors were encountered: