Skip to content

Fix Rank > 1 Display Strings for Natvis#1406

Merged
WardenGnaw merged 3 commits intomainfrom
dev/waan/fixMultirankMatrixDisplay
Jul 7, 2023
Merged

Fix Rank > 1 Display Strings for Natvis#1406
WardenGnaw merged 3 commits intomainfrom
dev/waan/fixMultirankMatrixDisplay

Conversation

@WardenGnaw
Copy link
Member

This PR fixes the display string for ArrayItems with Rank > 1 when the "[More...]" is expanded.
Before "[More...]" will expand starting at [0,0] instead of [0,50] for the first expansion since the offsets are at 50.

This change updated the call to GetDisplayNameFromArrayIndex from just index which would always start at 0, to startIndex + index to include the offet.
Added a test to cover this case and refactored the Matrix Natvis syntax to use rol/col instead of random behavior.

Fixes: #1403

This PR fixes the display string for ArrayItems with Rank > 1 when the
"[More...]" is expanded.

Before "[More...]" will expand starting at [0,0] instead of [0,50] for
the first expansion since the offsets are at 50.
Co-authored-by: Marco Peyrot <mapeyrot@microsoft.com>
@WardenGnaw
Copy link
Member Author

Flaky test failing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong numeration after first 50 items with multidimensional arrays in natvis (Linux)

3 participants