-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Debug Hover Widget - Enable the widget resizing for long items whose overflow is hidden #52511
Comments
Our solution for this is setting |
Hi @isidorn I checked the component source code files (debugHover.css & debugHover.ts) and i noticed that the widget sizes are hard coded as: height= item number (max 18) * 18px = max 324px; (https://github.com/Microsoft/vscode/blob/a543a0a15fb056ad64d59ff106c404c1c928b85c/src/vs/workbench/parts/debug/electron-browser/debugHover.ts#L264) Trough 'git blame' i noticed that you are the author and for sure you should know better than everyone the ground up of this component. I tried to "play" directly with the Developer Tools and some nice bheaviour could be reached without modify the JS/TS code for a basic horizontal resizing:
I am new to the VS Code contribution (this is my first approach). How should we do for carry on this improvements. Should users vote for it? Of course my code is just an example and this component should be modified more deeply. Waiting for you feedback. Regards Gianluigi |
I can reopen this issue and we can treat it as a feature request. If we get more users asking for this we can discuss a potnetial pr. |
Since you are the "core contributor" on this component, did you plan some refactoring/rengineering about it? Cause maybe we can enrich this discussion, catching some ideas. |
I support this. Even though you can click the detail arrow to have a look into the single values, it's useful to have a quick overview into the debugged object. |
Out of scope for resizing the whole hover. |
Horizontal scroll bar would be anyway a first approach to a better user experience in debugging. Thank you. |
Verifier make sure you now get the horizontal scroll bar when the content is wide in the debug hover widget |
@liguori thanks for verifying -> adding verified label |
@isidorn I subscribed to the #59452 Regarding my second point the use case you described is the one I am talking about (hide and show again the debug widget). I didn't notice this behavhior: once the widget is hidden, when showed again the tree is restored to the initial state but the scrollbar keep the previous scrolled position. I will double check it and I will try to make a screencast for show you what I mean, |
@liguori aha I understand what you are saying. I was wrong -> the scroll position does not restart when we show the tree again. |
I was not aware you enabled horizontal scrolling in the tree for that widget. Feel free to submit PR. |
Created #59546 so I tackle this next milestone |
It would be very useful to implement the resizing for the Debug Hover Widget. Sometime happen that during a debug session you want to check the content of a variable of a complex object. If this content overflows the default widget's width (324px), It is hidden.
Actually, the only way for check this content is to add the code expression into the "watch panel" or evaluate it trought the "Debug console". An alternative can be waiting for the tooltip that appear on the mouse hover at the specific node of the three.
The text was updated successfully, but these errors were encountered: