[BUG] "Go to references" shows too many references with C# dev kit
- Dominant language
- TypeScript
- Stars
- 3.1k
- Forks
- 737
- Avg merge
- 18h 40m
- Merged PRs (30d)
- 31
Description
From vscode-dotnettools created by [mpmp1000](https://github.com/mpmp1000): microsoft/vscode-dotnettools#831
### Describe the Issue
Scenario:
- I have a C# file open in VS Code
- I have a method that has 1 sender
- In the editor, it says "1 reference" above this method
- When I click on this "1 reference" link, TWO references are shown
- One of them is the method itself
- The other one is the real sender
The method itself shouldn't be shown. It makes navigating through code very cumbersome. It's at its worst when there's only 1 sender, because you expect the editor to immediately jump to the reference itself, instead of opening a "references window".
The same happens when:
- Ctrl-clicking on the method name
- Right-clicking and asking "Go to references"
This bug has been here for months and I think it has been reported already a while ago, but I can't find it anymore.
Can this be fixed?
Thanks!
### Steps To Reproduce
(see description)
### Expected Behavior
- If a method has only one sender, then "Go to references" should immediately jump to that 1 sender instead of showing 2 senders.
- "Go to references" should never include the method itself
### Environment Information
|Extension|Author|Version|Folder Name|
|---|---|---|---|
|csdevkit|ms-dotnettools|1.1.16|ms-dotnettools.csdevkit-1.1.16-win32-x64|
|csharp|ms-dotnettools|2.14.8|ms-dotnettools.csharp-2.14.8-win32-x64|
|shaderlabformatter|litefeel|0.4.3|litefeel.shaderlabformatter-0.4.3|
|vscode-dotnet-runtime|ms-dotnettools|2.0.0|ms-dotnettools.vscode-dotnet-runtime-2.0.0|
|vscodeintellicode-csharp|ms-dotnettools|0.1.26|ms-dotnettools.vscodeintellicode-csharp-0.1.26-win32-x64|
|vstuc|visualstudiotoolsforunity|0.9.3|visualstudiotoolsforunity.vstuc-0.9.3|;
Contributor guide
Assessment
This issue has not been assessed yet.