microsoft / vscode-dotnettools

This is a feedback repository to capture issues logged for the C# Dev Kit and related extensions from Visual Studio Code
Other
210 stars 7 forks source link

Solution explorer doesn't show source generated files #362

Open virzak opened 11 months ago

virzak commented 11 months ago

Describe the feature you'd like

With the following code:

using System.Text.RegularExpressions;

namespace SG;

public partial class Class1
{
    Regex r = MyRegex();

    bool Test(string s) => r.Match(s).Success;

    [GeneratedRegex("abc.*")]
    private static partial Regex MyRegex();
}

I can see the generated source in VS

image

However it is unavailable in VS Code

image

Alternatives considered

Use Visual Studio is one alternative.

Environment Information

Windows 11 VS Code 1.81.0 C# Dev Kit v0.4.2

SzymonHalucha commented 1 month ago

This is a very useful functionality, and it is constantly being delayed :(