Skip to content

natvis parser shouldn't depend on the order of entries #1162

Description

@Trass3r

With this taken from the msvc stl natvis:

  <Type Name="std::tuple&lt;*&gt;">
  </Type>
  <Type Name="std::tuple&lt;*,*&gt;">
  </Type>
  <Type Name="std::tuple&lt;*,*,*&gt;">

it will pick the first match in VSCode, not the best. E.g. for std::tuple<int,int,int> it will pick the second, cause of

var visualizer = autoVis.Visualizers.Find((v) => v.ParsedName.Match(name)); // TODO: match on View, version, etc

// args must match one-for one,
// or if last arg is a wildcard it will match any number of additional args
if (Args.Count > t.Args.Count || (Args.Count == 0 && t.Args.Count > 0) || (Args.Count < t.Args.Count && !Args[Args.Count - 1].IsWildcard))

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