Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Peek definition doesn't work on source generated code #65873

Open
svick opened this issue Dec 8, 2022 · 0 comments
Open

Peek definition doesn't work on source generated code #65873

svick opened this issue Dec 8, 2022 · 0 comments
Assignees
Milestone

Comments

@svick
Copy link
Contributor

svick commented Dec 8, 2022

Version Used: VS 17.5.0 Preview 1.0

Steps to Reproduce:

  1. Create a console application that uses GeneratedRegex:

    using System.Text.RegularExpressions;
    
    partial class Program
    {
        static void Main() { }
    
        [GeneratedRegex(".")]
        private static partial Regex Regex();
    }
  2. Right click on the partial method and select Peek Definition.

Expected Behavior: Peek Definition shows the generated code.

Actual Behavior:

Peek Definition says that it cannot open the file:

Note that Go To Definition works just fine:

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Dec 8, 2022
@svick svick added the New Feature - Source Generators Source Generators label Dec 8, 2022
@arkalyanms arkalyanms removed the untriaged Issues and PRs which have not yet been triaged by a lead label Dec 12, 2022
@arkalyanms arkalyanms added this to the 17.5 milestone Dec 12, 2022
@arkalyanms arkalyanms modified the milestones: 17.5, Backlog Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants