Skip to content

Conversation

@lhecker
Copy link
Member

@lhecker lhecker commented Jun 13, 2023

Fixes the broken types for TextAttribute, til::size, til::point
and til::rect and adds a new type for TextBuffer which without
this would now be much harder to inspect due to introduction of
the manual virtual memory management in 612b00c.

@lhecker lhecker added the Area-CodeHealth Issues related to code cleanliness, linting, rules, warnings, errors, static analysis, etc. label Jun 13, 2023
<Item Name="scratchpad">*(ROW*)_buffer.__ptr_.__value_</Item>
<IndexListItems>
<Size>(_commitWatermark - _buffer.__ptr_.__value_ - 1) / _bufferRowStride</Size>
<ValueNode>*(ROW*)(_buffer.__ptr_.__value_ + _bufferRowStride * ($i + 1))</ValueNode>
Copy link
Member Author

@lhecker lhecker Jun 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even if I add the wil.natvis file to our project I can't get the get() function to work without VS complaining about it having side effects. It works fine in a watch window, so I think this is a problem with a natvis file not being able to reference another file? But why do STL types work then? I don't entirely get it...

In any case, this works. It's ugly but it works.

@carlos-zamora carlos-zamora added the Needs-Second It's a PR that needs another sign-off label Jun 13, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs-Second It's a PR that needs another sign-off label Jun 13, 2023
@DHowett DHowett merged commit 8f8c79f into main Jun 13, 2023
@DHowett DHowett deleted the dev/lhecker/natvis-improvements branch June 13, 2023 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-CodeHealth Issues related to code cleanliness, linting, rules, warnings, errors, static analysis, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants