Debugger max Structures Fields to Display in Tooltip #287
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Calculate the maximum number of lines when debugging structures to always display the tooltip up or down with the maximum number of fields possible.
Currently, with MaxLine = 25 hardcoded, no possibility to display more lines for large structures if there is enough space.
If there isn't enough space at the bottom or top, the tolltip is Not displayed at All.
Large structure tooltip is often not displayed when the cursor is on a line in the middle of the editor, no problem when the cursor is at the top or bottom.
With the calculation, the number of lines to be displayed is adjusted (with a 1 line margin to be on the safe side) to the available up or down space.
And so make sure the tooltip is always displayed with the maximum number of structure fields displayed.
Tested on Windows only but not on Linux, Mac