dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
19.09k stars 4.04k forks source link

CodeLens References not shown #39615

Open vsfeedback opened 5 years ago

vsfeedback commented 5 years ago

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


[regression] [worked-in:16.4 Preview 3] Although CodeLens Appear the references are not shown


Original Comments

Visual Studio Feedback System on 10/27/2019, 08:55 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Timbo on 10/29/2019, 04:07 AM:

also have this issue. Codelens was missing in preview 1, its back in preview 2 but broken references


Original Solutions

(no solutions)

dagrooms52 commented 4 years ago

image Attaching a screenshot that may help with the issue. I see this fewer than half of the times I click the reference counter above any method. This is a slowdown in the developer workflow since the references list has to be opened and clicked through at the bottom of the screen.

CyrusNajmabadi commented 4 years ago

@dagrooms52 Can you please link to a repro project where yuo observe this and include instructions on which file you're trying this out in?

JoeRobich commented 4 years ago

Also, reported on developer community as https://developercommunity2.visualstudio.com/t/CodeLens-click-does-not-display-any-refe/862923

May be related to https://github.com/dotnet/roslyn/issues/47606

ryzngard commented 4 years ago

Given the screenshot from @dagrooms52 I think it's a separate issue. The references shown are all in a .cs file. This is unexpected because codelens uses the FAR code to show references...

CreateAndInject commented 3 years ago

Someone work for this? This issue still exists on 16.8.4

ryzngard commented 3 years ago

This started as help wanted and in the backlog, so it hasn't been on my radar to fix anytime soon based on priority. @CreateAndInject do you have a definitive repro or more information? Is this always happening for you?

CreateAndInject commented 3 years ago

I can't repro it exactly, but it's not very difficult, when I use VS several days(I don't shutdown my PC), it can repro.

wardboumans commented 3 years ago

I just encountered this issue on VS 2022 Preview 6 as well.

zhh0000zhh commented 10 months ago

image

zhh0000zhh commented 10 months ago

Restored after deleting .vs