Open phts99 opened 7 months ago
@phts99 thanks for reporting. I was able to reproduce this for any components provided by the sdk, but for components within a project the go to definition works correctly. Does that match the behavior you're seeing? I tested in WSL with Ubuntu 22.04.3 LTS
Type: Bug
Installed .NET 8 SDK with 'sudo apt-get install -y dotnet-sdk-8.0' and created a new Blazor project with 'dotnet new blazor'.
Navigated to Routes.razor and hovered the mouse over the class and was able to see the definiton snippet with the namespace and short description: "Microsoft.AspNetCore.Components.Routing.Router A component that supplies route data corresponding to the current navigation state."
Tried to go to definition and got the classic no definition found message: "No definition found for 'Router'". This behaviour happens on any Microsoft .NET class.
C# output
Using dotnet configured on PATH Dotnet path: /usr/lib/dotnet/dotnet Activating C# + C# Dev Kit + C# IntelliCode... waiting for named pipe information from server... [stdout] {"pipeName":"/tmp/a461d802.sock"} received named pipe information from server attempting to connect client to server... client has connected to server [Info - 7:54:36 PM] [Program] Language server initialized [Info - 7:54:38 PM] [WorkspaceProjectFactoryService] Project /home/rsgkk/Documents/Development/Blazor/FirstApp/FirstApp.csproj loaded by C# Dev Kit
C# Dev Kit output
Starting Spawn .NET server... Starting Open a solution... Starting Open a solution with environment service... Starting Clear environment... Using preinstalled .NET runtime at "/usr/lib/dotnet/dotnet" .NET server started and IPC established in 1192ms Completed Spawn .NET server (1385ms) Completed Clear environment (2036ms) Completed Open a solution with environment service (2217ms) Starting Restore solution... Completed Open a solution (2552ms) Starting NuGet restore for the solution. Starting command: "dotnet" restore /home/myuser/Development/Blazor/FirstApp/FirstApp.sln --interactive... Completed command: "dotnet" restore /home/myuser/Development/Blazor/FirstApp/FirstApp.sln --interactive (888ms) Completed NuGet restore. Completed Restore solution (890ms) Starting Open a solution... Solution is already opened. Completed Open a solution (0ms)
Extension version: 1.4.29 VS Code version: Code 1.87.2 (863d2581ecda6849923a2118d93a088b0745d9d6, 2024-03-08T15:14:59.643Z) OS version: Linux x64 6.5.0-26-generic snap Modes:
System Info
|Item|Value| |---|---| |CPUs|AMD Ryzen 9 5900X 12-Core Processor (24 x 4177)| |GPU Status|2d_canvas: enabledcanvas_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: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|2, 2, 1| |Memory (System)|31.25GB (22.50GB free)| |Process Argv|--no-sandbox --force-user-env --unity-launch --crash-reporter-id 592cdb8d-a047-478b-9091-2a0f94e6dbec| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|ubuntu| |XDG_CURRENT_DESKTOP|Unity| |XDG_SESSION_DESKTOP|ubuntu| |XDG_SESSION_TYPE|x11|
A/B Experiments
``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscoreces:30445986 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyone:30548225 vscrp:30673768 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 h48ei257:31000450 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 d34g3935:30971562 fegfb526:30981948 bg6jg535:30979843 ccp2r3:30993541 dsvsc020:30976470 pythonaic:30996667 gee8j676:30988843 dsvsc021:30996838 g1icg217:30999571 ```