-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
Provide a way to show the editor hover while debugging #84561
Comments
The issue here is that debug hides all other hovers to show the debug custom hover. This is a design limitation of the debug. |
The problem is it's not possible to trigger it manually, because the javadoc request is not exposed to user. |
Duplicate of #99856? |
Actually this is an older issue, so closing that one. |
I think Ctrl would be more natural for the fingers. |
We use |
I don't know what it is on Windows, but on Mac if you hold down Cmd when hovering over symbols, it shows a preview of the definition. If this is Ctrl or Alt on Windows, it might be wise to avoid using the same one (otherwise the hover might be larger than expected because it'll have a code snippet in it too). |
I have pushed the following change: Some open questions:
Alternative approach would be to just have a global command that toggles the hover behavior. However this felt more "heavy" to me and I personally prefer the @DanTup Thanks for feedback. I have verified and on Windows this is fyi @weinand @connor4312 |
That would be my main concern too. Maybe there needs to be a 'status bar' in the popup reading "hold Alt for ...". I vaguely remember something like that from VS.
You probably need to switch fast and often so that would be way too clumsy. |
If something like that is done, it should be probably include the others (for example the Cmd/Ctrl behaviour I mentioned above). There are lots of little things like that that aren't very discoverable right now (I only found that one by accident because it was rendering badly due to some other issues). |
Feedback from standup was positive. With the overall impression that the ideal solution would be to just show both the regular hover and the debug hover at the same time. However since this is currently not possible due to the way how editor layout hovers this alt approach is a good workaround. Feedback once you try it out is very welcome. Initial work has been done thus closing |
if we can add an new pendant(little button?) to the debug popup, while debugging, show the debug popup when hovered, user will see the pendant. |
I tried
A new global command to trigger javadoc at the selected symbol would be a good option. With this, you didn't need deal with the debugging state. |
I have pushed a smoother transitoin between the debug hover and the editor hover. @testforstephen thanks a lot for trying out out.
As for the global command I would only add this if this |
…r hover and that the mouse move does not hide the regular hover fixes #84561
I have also pushed a commit to tackle 1) Please try it out with VS Code insiders from monday and let me know how it behaves now. Thanks a lot! |
@isidorn tried again, the latest insider works well. |
Great! I will also create a small test plan item for this so we cover it in Endgame week. |
Currently when your program stops at a breakpoint, hover on symbols will trigger evaluate DAP request automatically. And LSP doesn't receive hover request, so no way to show the javadoc during debugging.
Really like having a way to trigger the javadoc during debugging. It could be a shortcut to trigger javadoc manually. Or VS Code client intelligently determines sending the hover request to the correct server (DAP or LSP) based on the hover context. If the hover context is a variable, send to DAP, otherwise, to LSP.
The text was updated successfully, but these errors were encountered: