Skip to content

Code Lens doesn't show references on Source Generated files #74104

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


Hello,
I'm trying to create a source generator using the recommended IIncrementalGenerator API.
The project builds normally and I'm able to set debug breakpoints.
However, CodeLens shows "- references" on the methods that are source generated or are referenced by them. "Find all references" and Shift+F12 works normally.
I'd like to see the references both in hand-written and source generated code.
Minimal repro: https://github.com/lukedays/CodeLensSourceGenError
Thanks in advance.


Original Comments

Feedback Bot on 6/13/2024, 08:12 PM:

(private comment, text removed)

Feedback Bot on 6/17/2024, 03:01 PM:

(private comment, text removed)


Original Solutions

(no solutions)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions