-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Reference highlighting doesn't work for some types from constructor expression #74803
Comments
I cannot reproduce this in 17.12.0 P3 |
It is still broken for me (in 17.12 P3): 20241018-1824-11.4051449.mp4 |
Your |
Yes, and you nailed it! Once I move them to the same file, it finds the references both ways. |
I tried to reproduce this in both 17.11, 17.12 P3 and the current This is a very strange case. Perhaps try restarting VS, using another VS color theme? Maybe post some more code to provide critical context that could be missing? |
I cannot repro this either. Please support a repro project if you are still seeing this. |
I can still do in a large project: 20241126-0848-57.8840407.mp4But unfortunately, if I copy the same files in the same structure into a small console app, it works fine. So, my guess is it may be related to some timing/cancellation issues, perhaps it finishes quickly in a small project, but takes more time in a large project to calculate the references and gets cancelled meanwhile? I've seen other issues (Go to definition, Quick info, ..) were closed by fixing an issue related to cancellation (thank you, I appreciate the effort!), maybe this one has the same root cause, or already fixed by those changes. |
I confirm the above; I've also seen this here and there on larger projects and slower machines, while it always seems to work fine in other cases, including tests |
Does this repro for you on 17.13 builds? |
Yes, I'm on VS 17.13.0 Preview 1.0, .NET 9.0.100 (and Intel i9-13900K with 64 GB RAM). Total number of files: 979
|
@CyrusNajmabadi has #76097 fixed this? |
Version Used: 17.12.0 P1
Steps to Reproduce:
Look at how highlighting of references of
FinishedStatus
doesn't work if I select the symbol in a constructor expression, while it works if I select the type in a declaration expression:Kepernyofelvetel.2024-08-19.175334.mp4
Unfortunately, I could not narrow down the context in which it doesn't work. But it never picks up this type (or any of its siblings - inherited from
JobStatusUpdate
) in any file in the whole solution.Notes:
Diagnostic Id:
N/A
Expected Behavior:
It finds and highlights references from all starting points.
Actual Behavior:
It does not highlight references from a constructor expression.
The text was updated successfully, but these errors were encountered: