CodeLens: References to local functions are not displayed
This issue has been moved from a ticket on Developer Community.
Local functions inside methods doesn't display references in code as it will normally do with normal methods. Additionally, descriptions or summaries too doesn't work properly.
Here you can see the normal behaviour

On the local function, no reference is displayed, neither is the summary.

This makes the local functions not very user friendly if you have several of them.
Original Comments
Feedback Bot on 5/20/2024, 01:57 AM:
(private comment, text removed)
This is a request for codelens to support local functions.
@CyrusNajmabadi whom should we reach out to for this?
Reached out to Luke and Chad (not sure of their github aliases)
I looked a bit more and this is a feature request. I took a quick stab here (https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_git/VS/commit/862d6ae5f63873d5236269aa23ceb4f817f906ce), but I'm unsure whether to proceed as there are concerns that we should expose this as a tools->options flag to allow users to not have this behavior for local functions. Looked into the tools->options support, and hooking into the current location would not be trivial, that list is built up programatically, and doesn't have the concept of provider based options.
Hello, is there any update about the progress on this feature request?
I talked with a couple team members, and there were reservations expressed as we have added (and later removed) similar functionality in the past due to negative feedback. The codelens support is unfortunately implemented across several codebases, and thus supporting features like this that would require tools->options support requires an effort we aren't yet ready to commit to for this feature.
I'm adding my +1 vote for this. Local functions are a great tool, when used properly, and CodeLens would make them more usable.