Closed MrIhor closed 7 months ago
Can you provide more details on exactly what is going wrong? The logs aren't showing any specific find references errors
Same issue, Code Lens is enabled to show references in the settings but they are not displayed above the methods.
Right-click and Go to references
/ Peek references
/ Find all references
work as expected.
Extension | Version |
---|---|
.NET Install Tool | v2.0.0 |
C# | v2.13.10 |
C# Dev Kit | v1.1.16 |
IntelliCode for C# Dev Kit | v0.1.26 |
Correction: I do see references above methods in the code block in a Blazor project. In a console project I only see references above classes, records and structs.
I just opened a bug that may be the same problem?
I have a similar error. The problem is that the Blazor WebAssembly App
project does not see references to the Class Library
project. But the Console App
project sees it in one solution. Interestingly, this video shows that about 2 months ago everything was working OK. Can you tell me @leslierichardson95 what versions of extension and VS Code you used when recording this video and whether the references still work correctly with the latest versions?
Extension | Version |
---|---|
.NET Install Tool | v2.0.0 |
C# | v2.14.8 |
C# Dev Kit | v1.1.16 & v1.2.5 |
IntelliCode for C# Dev Kit | v0.1.26 |
VS Code (portable) | v1.85.1 |
It is worth adding that when I open the same code in Visual Studio 2022, there are no problems and all references are visible.
The images show this exact project with an additional Console App
project added for testing.
Shows reference with Console App
Don't show reference with Blazor WebAssembly App
Closing this issue - the original issue as filed doesn't have enough information, and it looks like the other comments may be tracked and resolved by a separate bug.
If anyone in this thread is still having issues on the latest version of the extension, please file a new issue (with the latest C# logs and repro description).
Type: Bug
Issue Description
Steps to Reproduce
Expected Behavior
Actual Behavior
Logs
C# log
C# LSP Trace Logs
Environment information
VSCode version: 1.84.2 C# Extension: 2.10.28 Using OmniSharp: false
Dotnet Information
.NET SDK: Version: 7.0.311 Commit: 3d9518d885 Runtime Environment: OS Name: Mac OS X OS Version: 14.0 OS Platform: Darwin RID: osx-arm64 Base Path: /usr/local/share/dotnet/sdk/7.0.311/ Host: Version: 8.0.0-preview.3.23174.8 Architecture: arm64 Commit: 47bad717bd .NET SDKs installed: 6.0.402 [/usr/local/share/dotnet/sdk] 6.0.406 [/usr/local/share/dotnet/sdk] 6.0.407 [/usr/local/share/dotnet/sdk] 6.0.408 [/usr/local/share/dotnet/sdk] 6.0.410 [/usr/local/share/dotnet/sdk] 6.0.412 [/usr/local/share/dotnet/sdk] 6.0.413 [/usr/local/share/dotnet/sdk] 6.0.414 [/usr/local/share/dotnet/sdk] 6.0.415 [/usr/local/share/dotnet/sdk] 6.0.417 [/usr/local/share/dotnet/sdk] 7.0.202 [/usr/local/share/dotnet/sdk] 7.0.203 [/usr/local/share/dotnet/sdk] 7.0.302 [/usr/local/share/dotnet/sdk] 7.0.304 [/usr/local/share/dotnet/sdk] 7.0.306 [/usr/local/share/dotnet/sdk] 7.0.307 [/usr/local/share/dotnet/sdk] 7.0.308 [/usr/local/share/dotnet/sdk] 7.0.309 [/usr/local/share/dotnet/sdk] 7.0.311 [/usr/local/share/dotnet/sdk] .NET runtimes installed: Microsoft.AspNetCore.App 6.0.10 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.14 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.15 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.16 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.18 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.20 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.21 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.22 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.23 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.25 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 7.0.4 [/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.7 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 7.0.9 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 7.0.10 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 7.0.11 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 7.0.12 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 7.0.14 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 8.0.0-preview.2.23153.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 8.0.0-preview.3.23177.8 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 6.0.10 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.14 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.15 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.16 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.18 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.20 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.21 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.22 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.23 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.25 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.4 [/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.7 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.9 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.10 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.11 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.12 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.14 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 8.0.0-preview.2.23128.3 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 8.0.0-preview.3.23174.8 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Other architectures found: x64 [/usr/local/share/dotnet/x64] registered at [/etc/dotnet/install_location_x64] Environment variables: Not set global.json file: Not found Learn more: https://aka.ms/dotnet/info Download .NET: https://aka.ms/dotnet/downloadVisual Studio Code Extensions
|Extension|Author|Version|Folder Name| |---|---|---|---| |auto-close-tag|formulahendry|0.5.14|formulahendry.auto-close-tag-0.5.14| |auto-complete-tag|formulahendry|0.1.0|formulahendry.auto-complete-tag-0.1.0| |auto-rename-tag|formulahendry|0.1.10|formulahendry.auto-rename-tag-0.1.10| |binary-plist|dnicolson|0.11.3|dnicolson.binary-plist-0.11.3| |black-formatter|ms-python|2023.6.0|ms-python.black-formatter-2023.6.0| |csdevkit|ms-dotnettools|1.0.14|ms-dotnettools.csdevkit-1.0.14-darwin-arm64| |csharp|ms-dotnettools|2.10.28|ms-dotnettools.csharp-2.10.28-darwin-arm64| |csharpextensions|kreativ-software|1.7.3|kreativ-software.csharpextensions-1.7.3| |es7-react-js-snippets|dsznajder|4.4.3|dsznajder.es7-react-js-snippets-4.4.3| |graphql|mquandalle|0.1.2|mquandalle.graphql-0.1.2| |indent-rainbow|oderwat|8.3.1|oderwat.indent-rainbow-8.3.1| |intellicode-api-usage-examples|VisualStudioExptTeam|0.2.8|visualstudioexptteam.intellicode-api-usage-examples-0.2.8| |java|redhat|1.24.0|redhat.java-1.24.0-darwin-arm64| |JavaScriptSnippets|xabikos|1.8.0|xabikos.javascriptsnippets-1.8.0| |jsx-html-tags|angelorafael|1.0.1|angelorafael.jsx-html-tags-1.0.1| |LiveServer|ritwickdey|5.7.9|ritwickdey.liveserver-5.7.9| |markdown-all-in-one|yzhang|3.5.1|yzhang.markdown-all-in-one-3.5.1| |namespace|adrianwilczynski|1.1.2|adrianwilczynski.namespace-1.1.2| |open-in-browser|techer|2.0.0|techer.open-in-browser-2.0.0| |prettier-vscode|esbenp|10.1.0|esbenp.prettier-vscode-10.1.0| |prettyxml|PrateekMahendrakar|3.7.0|prateekmahendrakar.prettyxml-3.7.0| |python|ms-python|2023.20.0|ms-python.python-2023.20.0| |ReactSnippets|xabikos|2.4.0|xabikos.reactsnippets-2.4.0| |remote-containers|ms-vscode-remote|0.321.0|ms-vscode-remote.remote-containers-0.321.0| |syntax-project-pbxproj|mariomatheu|0.1.3|mariomatheu.syntax-project-pbxproj-0.1.3| |vscode-babel-coloring|dzannotti|0.0.4|dzannotti.vscode-babel-coloring-0.0.4| |vscode-csharp-snippets|jorgeserrano|1.1.0|jorgeserrano.vscode-csharp-snippets-1.1.0| |vscode-css-formatter|aeschli|1.0.2|aeschli.vscode-css-formatter-1.0.2| |vscode-docker|ms-azuretools|1.28.0|ms-azuretools.vscode-docker-1.28.0| |vscode-dotnet-runtime|ms-dotnettools|2.0.0|ms-dotnettools.vscode-dotnet-runtime-2.0.0| |vscode-eslint|dbaeumer|2.4.2|dbaeumer.vscode-eslint-2.4.2| |vscode-extension-auto-import|NuclleaR|1.4.3|nucllear.vscode-extension-auto-import-1.4.3| |vscode-html-css|ecmel|1.13.1|ecmel.vscode-html-css-1.13.1| |vscode-icons|vscode-icons-team|12.6.0|vscode-icons-team.vscode-icons-12.6.0| |vscode-java-debug|vscjava|0.55.0|vscjava.vscode-java-debug-0.55.0| |vscode-java-dependency|vscjava|0.23.2|vscjava.vscode-java-dependency-0.23.2| |vscode-java-pack|vscjava|0.25.15|vscjava.vscode-java-pack-0.25.15| |vscode-java-test|vscjava|0.40.1|vscjava.vscode-java-test-0.40.1| |vscode-maven|vscjava|0.43.0|vscjava.vscode-maven-0.43.0| |vscode-pylance|ms-python|2023.11.10|ms-python.vscode-pylance-2023.11.10| |vscode-snazzy-operator|aaronthomas|1.1.3|aaronthomas.vscode-snazzy-operator-1.1.3| |vscode-styled-components|styled-components|1.7.8|styled-components.vscode-styled-components-1.7.8| |vscodeintellicode|VisualStudioExptTeam|1.2.30|visualstudioexptteam.vscodeintellicode-1.2.30| |vscodeintellicode-csharp|ms-dotnettools|0.1.26|ms-dotnettools.vscodeintellicode-csharp-0.1.26-darwin-arm64|;Extension version: 2.10.28 VS Code version: Code 1.84.2 (Universal) (1a5daa3a0231a0fbba4f14db7ec463cf99d7768e, 2023-11-09T10:52:33.687Z) OS version: Darwin arm64 23.0.0 Modes:
System Info
|Item|Value| |---|---| |CPUs|Apple M1 (8 x 24)| |GPU Status|2d_canvas: enabledcanvas_oop_rasterization: enabled_on
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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|2, 1, 2| |Memory (System)|8.00GB (0.02GB free)| |Process Argv|--crash-reporter-id 916582c7-18ce-4cf4-81d3-be34967b38fb| |Screen Reader|no| |VM|0%|
A/B Experiments
``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscoreces:30445986 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 pythonvs932:30410667 py29gd2263:30880072 vscaac:30438847 vsclangdf:30486550 c4g48928:30535728 dsvsc012:30540252 pynewext54:30695312 azure-dev_surveyone:30548225 282f8724:30602487 f6dab269:30613381 a9j8j154:30646983 showlangstatbar:30737416 pythonfmttext:30731395 fixshowwlkth:30771522 showindicator:30805244 pythongtdpath:30769146 i26e3531:30792625 pythonnosmt12:30797651 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30869155 dsvsc013:30795093 dsvsc014:30804076 dsvsc015:30845448 pythontestfixt:30871694 pythonregdiag2:30871582 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 pythontbext0:30879054 accentitlementsc:30887149 dsvsc016cf:30886111 dsvsc017:30886112 dsvsc018:30886114 aa_t_chat:30882232 ```