dotnet / dotnet/roslyn

CodeLens: References to local functions are not displayed

Open
#73,663 7 comments 0 reactions 1 assignee Claimed by @akhera99 View on GitHub
Area-IDE CodeLens
Dominant language
C#
Stars
20.7k
Forks
4.3k
PR merge metrics
PR metrics pending

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/t/References-to-local-functions-are-not-di/10661038)._

---
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
![image.png](https://aka.ms/dc/image?name=B941484f1cf994375b80932592e2d988d638515360940288120_20240517-114813-image.png&tid=941484f1cf994375b80932592e2d988d638515360940288120)

On the local function, no reference is displayed, neither is the summary.
![image.png](https://aka.ms/dc/image?name=Be07b24eed799497eab249d3c3c80519f638515360763910086_20240517-114756-image.png&tid=e07b24eed799497eab249d3c3c80519f638515360763910086)

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)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.