Skip to content
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

Find All References does not work with the code in dlls #7785

Open
PoisonousJohn opened this issue Nov 14, 2024 · 0 comments
Open

Find All References does not work with the code in dlls #7785

PoisonousJohn opened this issue Nov 14, 2024 · 0 comments

Comments

@PoisonousJohn
Copy link

Type: Bug

Issue Description

Steps to Reproduce

  1. Add dll with some code to the project
  2. Use "Go to definition" action to open decompiled code
  3. Use "Find all references" to search the code that use that method

Expected Behavior

Find all references shows all usages, even if they are inside the same dll or even other dlls

Actual Behavior

Find all references shows only project source code that uses the method

Logs

C# log

Post the output from Output-->C# here

C# LSP Trace Logs

Post the output from Output-->C# LSP Trace Logs here. Requires the `C#` output window log level to be set to `Trace`

Environment information

VSCode version: 1.95.2
C# Extension: 2.56.31
Using OmniSharp: false

Dotnet Information .NET SDK: Version: 9.0.100 Commit: 59db016f11 Workload version: 9.0.100-manifests.3068a692 MSBuild version: 17.12.7+5b8665660

Runtime Environment:
OS Name: Mac OS X
OS Version: 15.1
OS Platform: Darwin
RID: osx-x64
Base Path: /usr/local/share/dotnet/sdk/9.0.100/

.NET workloads installed:
There are no installed workloads to display.
Configured to use loose manifests when installing new manifests.

Host:
Version: 9.0.0
Architecture: x64
Commit: 9d5a6a9aa4

.NET SDKs installed:
7.0.403 [/usr/local/share/dotnet/sdk]
7.0.406 [/usr/local/share/dotnet/sdk]
9.0.100 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.All 2.1.30 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.30 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.13 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.16 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.30 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 3.0.3 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.13 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.16 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

Visual Studio Code Extensions
Extension Author Version Folder Name
2077-theme Endormi 1.5.3 endormi.2077-theme-1.5.3
an-old-hope-theme-vscode dustinsanders 4.4.0 dustinsanders.an-old-hope-theme-vscode-4.4.0
autodocstring njpwerner 0.6.1 njpwerner.autodocstring-0.6.1
autofilename JerryHong 0.1.3 jerryhong.autofilename-0.1.3
ayu teabyii 1.0.5 teabyii.ayu-1.0.5
base16-themes AndrsDC 1.4.5 andrsdc.base16-themes-1.4.5
bdd-power-tools iteratec 1.1.0 iteratec.bdd-power-tools-1.1.0
better-comments aaron-bond 3.0.2 aaron-bond.better-comments-3.0.2
black-formatter ms-python 2024.4.0 ms-python.black-formatter-2024.4.0
build-runner Kaiqun 2.1.1 kaiqun.build-runner-2.1.1
catppuccin-vsc Catppuccin 3.16.0 catppuccin.catppuccin-vsc-3.16.0
cmake twxs 0.0.17 twxs.cmake-0.0.17
cmake-tools ms-vscode 1.19.52 ms-vscode.cmake-tools-1.19.52
color-highlight naumovs 2.8.0 naumovs.color-highlight-2.8.0
commit-message-editor adam-bender 0.25.0 adam-bender.commit-message-editor-0.25.0
cpptools ms-vscode 1.22.11 ms-vscode.cpptools-1.22.11-darwin-x64
cpptools-extension-pack ms-vscode 1.3.0 ms-vscode.cpptools-extension-pack-1.3.0
cpptools-themes ms-vscode 2.0.0 ms-vscode.cpptools-themes-2.0.0
csdevkit ms-dotnettools 1.14.2 ms-dotnettools.csdevkit-1.14.2-darwin-x64
csharp ms-dotnettools 2.56.31 ms-dotnettools.csharp-2.56.31-darwin-x64
dart-code Dart-Code 3.100.0 dart-code.dart-code-3.100.0
debugpy ms-python 2024.12.0 ms-python.debugpy-2024.12.0-darwin-x64
EditorConfig EditorConfig 0.16.4 editorconfig.editorconfig-0.16.4
eva-theme fisheva 2.7.2 fisheva.eva-theme-2.7.2
filter-line everettjf 2.0.1 everettjf.filter-line-2.0.1
flatbuffers gaborv 0.1.0 gaborv.flatbuffers-0.1.0
FlatUI lkytal 1.4.9 lkytal.flatui-1.4.9
flutter Dart-Code 3.100.0 dart-code.flutter-3.100.0
flutter-snippets alexisvt 3.0.0 alexisvt.flutter-snippets-3.0.0
flutter-utils AdrienAudouard 2.1.1 adrienaudouard.flutter-utils-2.1.1
freezed blaxou 0.9.6 blaxou.freezed-0.9.6
git-graph mhutchie 1.30.0 mhutchie.git-graph-1.30.0
gitblame waderyan 11.1.1 waderyan.gitblame-11.1.1
gitignore-templates hasanali 1.0.1 hasanali.gitignore-templates-1.0.1
gitlab-workflow GitLab 5.18.1 gitlab.gitlab-workflow-5.18.1
gitless maattdd 11.7.2 maattdd.gitless-11.7.2
grep-panel chrisjdavies 0.0.4 chrisjdavies.grep-panel-0.0.4
isort ms-python 2023.10.1 ms-python.isort-2023.10.1
JavaScriptSnippets xabikos 1.8.0 xabikos.javascriptsnippets-1.8.0
jenkinsfile-support secanis 0.1.0 secanis.jenkinsfile-support-0.1.0
jinjahtml samuelcolvin 0.20.0 samuelcolvin.jinjahtml-0.20.0
kotlin fwcd 0.2.35 fwcd.kotlin-0.2.35
kotlin-formatter esafirm 0.0.6 esafirm.kotlin-formatter-0.0.6
language-cython guyskk 0.0.8 guyskk.language-cython-0.0.8
live-server ms-vscode 0.4.15 ms-vscode.live-server-0.4.15
MagicPython magicstack 1.1.0 magicstack.magicpython-1.1.0
makefile-tools ms-vscode 0.11.13 ms-vscode.makefile-tools-0.11.13
markdown-all-in-one yzhang 3.6.2 yzhang.markdown-all-in-one-3.6.2
markdown-checkbox PKief 1.9.1 pkief.markdown-checkbox-1.9.1
markdown-pdf yzane 1.5.0 yzane.markdown-pdf-1.5.0
markdown-toc joffreykern 1.4.0 joffreykern.markdown-toc-1.4.0
material-icon-theme PKief 5.14.1 pkief.material-icon-theme-5.14.1
mongodb-vscode mongodb 1.9.3 mongodb.mongodb-vscode-1.9.3
mypy matangover 0.4.0 matangover.mypy-0.4.0
netcore-editorconfiggenerator doggy8088 0.2.0 doggy8088.netcore-editorconfiggenerator-0.2.0
output-colorizer IBM 0.1.2 ibm.output-colorizer-0.1.2
papercolor-vscode rozbo 1.0.2 rozbo.papercolor-vscode-1.0.2
partial-diff ryu1kn 1.4.3 ryu1kn.partial-diff-1.4.3
prettier-vscode esbenp 11.0.0 esbenp.prettier-vscode-11.0.0
pylint ms-python 2024.0.0 ms-python.pylint-2024.0.0
pytest-runner pamaron 0.0.7 pamaron.pytest-runner-0.0.7
python ms-python 2024.20.0 ms-python.python-2024.20.0-darwin-x64
quicksnippet mousetraps 0.0.1 mousetraps.quicksnippet-0.0.1
rainbow-csv mechatroner 3.12.0 mechatroner.rainbow-csv-3.12.0
remote-explorer ms-vscode 0.4.3 ms-vscode.remote-explorer-0.4.3
remote-ssh ms-vscode-remote 0.115.1 ms-vscode-remote.remote-ssh-0.115.1
remote-ssh-edit ms-vscode-remote 0.87.0 ms-vscode-remote.remote-ssh-edit-0.87.0
resharpervscode dev-land 0.9.15 dev-land.resharpervscode-0.9.15
rest-client humao 0.25.1 humao.rest-client-0.25.1
scope-info siegebell 0.2.0 siegebell.scope-info-0.2.0
shades-of-purple ahmadawais 7.3.2 ahmadawais.shades-of-purple-7.3.2
swift Kasik96 0.2.0 kasik96.swift-0.2.0
Theme-feelgood gerane 0.0.5 gerane.theme-feelgood-0.0.5
Theme-GitHubCleanWhite saviorisdead 0.0.3 saviorisdead.theme-githubcleanwhite-0.0.3
theme-jo-light ivanzusko 0.0.1 ivanzusko.theme-jo-light-0.0.1
Theme-MarkdownKit ms-vscode 0.1.4 ms-vscode.theme-markdownkit-0.1.4
Theme-Solarized-dark gerane 0.0.5 gerane.theme-solarized-dark-0.0.5
Theme-Solarized-light gerane 0.0.6 gerane.theme-solarized-light-0.0.6
Theme-Solarized-ocean gerane 0.0.5 gerane.theme-solarized-ocean-0.0.5
todo-list TzachOvadia 1.6.0 tzachovadia.todo-list-1.6.0
tsimporter pmneo 2.0.1 pmneo.tsimporter-2.0.1
typewriterscrollmode andyhuzhill 0.1.1 andyhuzhill.typewriterscrollmode-0.1.1
unique-lines bibhasdn 1.0.0 bibhasdn.unique-lines-1.0.0
vscode-clang mitaki28 0.2.4 mitaki28.vscode-clang-0.2.4
vscode-commons redhat 0.0.6 redhat.vscode-commons-0.0.6
vscode-diff-viewer caponetto 1.5.0 caponetto.vscode-diff-viewer-1.5.0
vscode-dotnet-runtime ms-dotnettools 2.2.2 ms-dotnettools.vscode-dotnet-runtime-2.2.2
vscode-edit-csv janisdd 0.10.0 janisdd.vscode-edit-csv-0.10.0
vscode-firefox-debug firefox-devtools 2.9.11 firefox-devtools.vscode-firefox-debug-2.9.11
vscode-markdown-notes kortina 0.0.27 kortina.vscode-markdown-notes-0.0.27
vscode-paste-image mushan 1.0.4 mushan.vscode-paste-image-1.0.4
vscode-pylance ms-python 2024.11.2 ms-python.vscode-pylance-2024.11.2
vscode-sundial muuvmuuv 3.4.1 muuvmuuv.vscode-sundial-3.4.1
vscode-theme-onelight akamud 2.3.0 akamud.vscode-theme-onelight-2.3.0
vscode-xml redhat 0.27.1 redhat.vscode-xml-0.27.1-darwin-x64
vscode-yaml redhat 1.15.0 redhat.vscode-yaml-1.15.0
vscodeintellicode-csharp ms-dotnettools 2.2.3 ms-dotnettools.vscodeintellicode-csharp-2.2.3-darwin-x64
vstuc visualstudiotoolsforunity 1.0.4 visualstudiotoolsforunity.vstuc-1.0.4
whole-diff JacekKopecky 0.8.1 jacekkopecky.whole-diff-0.8.1

Extension version: 2.56.31
VS Code version: Code 1.95.2 (Universal) (e8653663e8840adaf45af01eab5c627a5af81807, 2024-11-07T11:07:22.054Z)
OS version: Darwin x64 24.1.0
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (16 x 2300)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 2, 3, 4
Memory (System) 32.00GB (0.76GB free)
Process Argv . --crash-reporter-id 5e9d3e13-78c0-4528-a9c4-7627598aced5
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
945dj816:31013170
dvdeprecation:31068756
dwnewjupytercf:31046870
newcmakeconfigv2:31071590
impr_priority:31102340
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc2:31134642
cf971741:31144450
iacca1:31171482
notype1cf:31157160
5fd0e150:31155592
dwcopilot:31170013

@PoisonousJohn PoisonousJohn changed the title Find All Reference does not work with the code in dlls Find All References does not work with the code in dlls Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants