Skip to content

Conversation

@OXINARF
Copy link
Contributor

@OXINARF OXINARF commented Dec 24, 2025

When a map has enum as keys and any type of struct as values, the enum value that was used for the key would be replaced as if it was base class.

As the VariableInformation class has a constructor that receives the names directly from the map, use that information to not allow the name override.

Fixes microsoft/vscode-cpptools#12102

When a map has enum as keys and any type of struct as values, the enum value that was used for the key would be replaced as if it was base class.

As the VariableInformation class has a constructor that receives the names directly from the map, use that information to not allow the name override.
@OXINARF OXINARF force-pushed the enum_key_struct_value_fix branch from 3e6ed65 to 62d944f Compare January 13, 2026 10:34
@WardenGnaw
Copy link
Member

@OXINARF Thank you for your contribution. I'll try to get this into the next insiders or release of the VS Code C++.

@WardenGnaw WardenGnaw merged commit edfe8eb into microsoft:main Jan 13, 2026
6 checks passed
@OXINARF OXINARF deleted the enum_key_struct_value_fix branch January 13, 2026 21:04
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.

Locals/Watch window displays std::map<enum, struct> incorrectly

2 participants