Skip to content

Support for HideRawView on Expand node #1458

Description

@ookami125

I'm currently building a compiler and it would be nice to hide the raw views so I can hide the duplicate info. This is supported on Visual Studio, so this is a request for feature parity.

My current natvis looks similar to this which makes all DataTypes produce 2 RawViews for every single variable.

<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
    <Type Name="DataType">
        <DisplayString>{{{type}}}</DisplayString>
        <Expand HideRawView="1">
            <ExpandedItem Condition="type == DataType::INT">(DataTypeInt*)this,nd</ExpandedItem>
        </Expand>
    </Type>
    <Type Name="DataTypeInt">
        <Expand HideRawView="1">
            <Item Name="type">type</Item>
            <Item Name="castable">castable</Item>
            <Item Name="constant">constant</Item>
            <Item Name="Width">Width</Item>
            <Item Name="Signedness">Signedness</Item>
        </Expand>
    </Type>
</AutoVisualizer>

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions