Skip to content

Please add the pattern to the summary of GeneratedRegex partial method #88121

@pawchen

Description

@pawchen

Description

Currently only lengthy explanation is available. I would like to see the original pattern on mouse hover, it is much clearer for me, especially for patterns that contain several capture groups, (?<...>) is very easy to spot compared to bullet points.

image

Reproduction Steps

[GeneratedRegex(@"Origin (?<version>(?<num>\d+[a-z]?|\d+\.\d+(?:.\d)?)(?<sr> SR\d)?) (?<type>.*)")]
private static partial Regex GetOriginVersionPattern();

Expected behavior

The pattern used to generate the partial method should be included in the xml document summary.

Actual behavior

Only verbose explanations are given.

Regression?

No response

Known Workarounds

Not use the GeneratedRegex feature.

Configuration

VS 17.6.4
project targets .NET 7
.NET SDK 7.0.304

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions