-
Notifications
You must be signed in to change notification settings - Fork 4k
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
CodeLens doesn't work on records #47445
Comments
@jcouv Not critical. @jinujoseph who owns codelens now? |
There are two components to CodeLens: a tagger implemented in devdiv (internal) code, and a references provider implemented here in dotnet/roslyn. Both will need to be updated to report tags and information for the new syntax. |
What do you plan for codelens on properties that's only declared in primary constructor? Are they not being able to work with? |
VS PR for this here: https://devdiv.visualstudio.com/DevDiv/_git/VS/pullrequest/279270 |
🔗 Also reported as AB#1245289 |
In fact, there are a number of things that don't work for records.
|
@thomaslevesque what version of vs are you using? |
16.8.1 |
Sorry, actually I saw that in the screenshot in the feedback item I mentioned. I'm not seeing this on my machine, instead I can't expand the file in the solution explorer if the record is the only type in the file; if there are multiple types, I see the other types, but not the record. |
Wow... are you on 16.8.1 too? I'm seeing this bug on 2 different machines with a fresh VS install. |
No, i'm on 16.9preview2 :) |
Ah. Well, at least it's fixed in the next version... Any chance of getting the fix before 16.9 RTM? |
There is no chance of that happening. |
@CyrusNajmabadi Is the missing CodeLens reference bug (this issue) fixed in 16.9 too? |
@silkfire I can confirm that it is not. (At least not in 16.9 preview 2.) |
Yeah, I just installed 16.9, and the CodeLens data is still missing for records. |
I just installed 16.9.1, and the CodeLens data is still missing for records too. |
Anyone know if this is even being worked on at MS? It seems possibly only a minor thing, but actually for stuff like code coverage in tests codelens is invaluable to see at a glance what needs looking at. |
This currently is not assigned to anyone. We'd need to move it out of our backlog and into a particular release to make this happen. |
I'll see if i can make some time in the weekend to get this working. |
This has been fixed and is in the latest vs (internal) previews: Fixed with: https://devdiv.visualstudio.com/DevDiv/_git/a290117c-5a8a-40f7-bc2c-f14dbe3acf6d/pullrequest/279270 Should be in 16.10 |
Version Used:
Visual Studio 16.8.0 Preview 2.1
.NET SDK 5.0.100-preview.8.20417.9
Compiler version: '3.8.0-2.20418.7 (0276b9b)'. Language version: 9.0.
Steps to Reproduce:
Enter the following code:
Expected Behavior:
Code Lens shows number of references above
PersonRecord
andPersonRecord.Name
.Actual Behavior:
Code Lens is missing for record type and its members:
The text was updated successfully, but these errors were encountered: