I have recently encountered an issue with VS Code where references with codelens are not being previewed for parameterized records. I have found that this issue can be resolved by writing out at least one property, but this is not an ideal solution.
I believe that this issue should be addressed as it can be quite inconvenient for developers who are working with parameterized records. Is there any chance that this could be fixed in an upcoming update to VS Code?
Thank you for your attention to this matter.
Best regards,
Max Ron
Steps to Reproduce
create record type with just parameters and close by semicolon, codelens references stop showing up for the records and every member in the file
Expected Behavior
codelens references should show up like with any other type
Actual Behavior
codelens stops working for all members in the file
Logs
OmniSharp log
Starting OmniSharp server at 5/8/2023, 6:58:57 PM
Target: c:\Users\spiri\source\repos\MyMiotti-Management-System\MyMiotti-Management-System.sln
OmniSharp server started with .NET 7.0.202
.
Path: c:\Users\spiri\.vscode\extensions\ms-dotnettools.csharp-1.25.7-win32-x64\.omnisharp\1.39.6-net6.0\OmniSharp.dll
PID: 8832
[info]: OmniSharp.Stdio.Host
Starting OmniSharp on Windows 10.0.19044.0 (x64)
[info]: OmniSharp.Services.DotNetCliService
Checking the 'DOTNET_ROOT' environment variable to find a .NET SDK
[info]: OmniSharp.Services.DotNetCliService
Using the 'dotnet' on the PATH.
[info]: OmniSharp.Services.DotNetCliService
DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
Located 3 MSBuild instance(s)
1: .NET Core SDK 7.0.202 17.5.0 - "C:\Program Files\dotnet\sdk\7.0.202\"
2: .NET Core SDK 6.0.408 17.3.2 - "C:\Program Files\dotnet\sdk\6.0.408\"
3: .NET Core SDK 6.0.311 17.2.2 - "C:\Program Files\dotnet\sdk\6.0.311\"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
Registered MSBuild instance: .NET Core SDK 7.0.202 17.5.0 - "C:\Program Files\dotnet\sdk\7.0.202\"
[info]: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
[info]: OmniSharp.Cake.CakeProjectSystem
Detecting Cake files in 'c:\Users\spiri\source\repos\MyMiotti-Management-System'.
[info]: OmniSharp.Cake.CakeProjectSystem
Did not find any Cake files
[info]: OmniSharp.MSBuild.ProjectSystem
Detecting projects in 'c:\Users\spiri\source\repos\MyMiotti-Management-System\MyMiotti-Management-System.sln'.
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\ProofOfConcept.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
Detecting CSX files in 'c:\Users\spiri\source\repos\MyMiotti-Management-System'.
[info]: OmniSharp.Script.ScriptProjectSystem
Did not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
Configuration finished.
[info]: OmniSharp.Stdio.Host
Omnisharp server running using Stdio at location 'c:\Users\spiri\source\repos\MyMiotti-Management-System' on host 5388.
[info]: OmniSharp.MSBuild.ProjectManager
Loading project: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\ProofOfConcept.csproj
[info]: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file 'c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\ProofOfConcept.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
Adding project 'c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\ProofOfConcept.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Update project: ProofOfConcept
Received response for /v2/getcodeactions but could not find request.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 627, Column: 10.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 627, Column: 10.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 619, Column: 57.
Received response for /findusages but could not find request.
Received response for /findusages but could not find request.
Received response for /findusages but could not find request.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 600, Column: 81.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 619, Column: 57.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 626, Column: 83.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 627, Column: 10.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 626, Column: 83.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 627, Column: 10.
Received response for /v2/getcodeactions but could not find request.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 626, Column: 0.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 602, Column: 0.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 601, Column: 0.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 600, Column: 0.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 604, Column: 0.
Received response for /v2/getcodeactions but could not find request.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 608, Column: 0.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 632, Column: 0.
Received response for /completion but could not find request.
Received response for /completion/resolve but could not find request.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 632, Column: 4.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 614, Column: 4.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 612, Column: 4.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 611, Column: 4.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 608, Column: 4.
Received response for /findusages but could not find request.
Received response for /v2/getcodeactions but could not find request.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 619, Column: 57.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 630, Column: 10.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 626, Column: 0.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 627, Column: 134.
Received response for /v2/blockstructure but could not find request.
Received response for /findusages but could not find request.
Received response for /findusages but could not find request.
Received response for /findusages but could not find request.
Received response for /findusages but could not find request.
Received response for /findusages but could not find request.
Received response for /findusages but could not find request.
Received response for /findusages but could not find request.
Received response for /findusages but could not find request.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 630, Column: 1.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 630, Column: 1.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 626, Column: 1.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 626, Column: 1.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 628, Column: 49.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 628, Column: 57.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 628, Column: 43.
Received response for /v2/getcodeactions but could not find request.
Received response for /v2/getcodeactions but could not find request.
Received response for /findusages but could not find request.
Received response for /findusages but could not find request.
Received response for /findusages but could not find request.
Received response for /findusages but could not find request.
Received response for /findusages but could not find request.
Received response for /findusages but could not find request.
Received response for /v2/getcodeactions but could not find request.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 628, Column: 81.
Received response for /findusages but could not find request.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 630, Column: 10.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 630, Column: 10.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 630, Column: 10.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 630, Column: 10.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 628, Column: 62.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No symbol found. File: c:\Users\spiri\source\repos\MyMiotti-Management-System\ProofOfConcept\Program.cs, Line: 628, Column: 52.
Received response for /quickinfo but could not find request.
Issue Description
Hello Support Team,
I have recently encountered an issue with VS Code where references with codelens are not being previewed for parameterized records. I have found that this issue can be resolved by writing out at least one property, but this is not an ideal solution.
I believe that this issue should be addressed as it can be quite inconvenient for developers who are working with parameterized records. Is there any chance that this could be fixed in an upcoming update to VS Code?
Thank you for your attention to this matter.
Best regards, Max Ron
Steps to Reproduce
create record type with just parameters and close by semicolon, codelens references stop showing up for the records and every member in the file
Expected Behavior
codelens references should show up like with any other type
Actual Behavior
codelens stops working for all members in the file
Logs
OmniSharp log
C# log
Environment information
VSCode version: 1.78.0 C# Extension: 1.25.7
Dotnet Information
.NET SDK: Version: 7.0.202 Commit: 6c74320bc3 Runtime Environment: OS Name: Windows OS Version: 10.0.19044 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\7.0.202\ Host: Version: 7.0.4 Architecture: x64 Commit: 0a396acafe .NET SDKs installed: 6.0.311 [C:\Program Files\dotnet\sdk] 6.0.408 [C:\Program Files\dotnet\sdk] 7.0.202 [C:\Program Files\dotnet\sdk] .NET runtimes installed: Microsoft.AspNetCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.15 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 7.0.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.15 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 6.0.15 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 6.0.16 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 7.0.4 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Other architectures found: x86 [C:\Program Files (x86)\dotnet] registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation] 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| |---|---|---| |azure-account|ms-vscode|0.11.4| |better-cpp-syntax|jeff-hykin|1.17.2| |cmake|twxs|0.0.17| |cmake-tools|ms-vscode|1.14.31| |codesnap|adpyke|1.3.4| |cpptools|ms-vscode|1.15.4| |cpptools-extension-pack|ms-vscode|1.3.0| |cpptools-themes|ms-vscode|2.0.0| |csharp|ms-dotnettools|1.25.7| |data-workspace-vscode|ms-mssql|0.4.0| |dotnet-interactive-vscode|ms-dotnettools|1.0.4212010| |dotnet-meteor|nromanov|2.62.1| |dotnet-test-explorer|formulahendry|0.7.8| |doxdocgen|cschlosser|1.4.0| |gitignore|codezombiech|0.9.0| |hexeditor|ms-vscode|1.9.11| |ilspy-vscode|icsharpcode|0.15.0| |intellicode-api-usage-examples|VisualStudioExptTeam|0.2.7| |isort|ms-python|2022.8.0| |java|redhat|1.18.0| |JavaScriptSnippets|xabikos|1.8.0| |jupyter|ms-toolsai|2023.4.1011241018| |jupyter-keymap|ms-toolsai|1.1.0| |jupyter-renderers|ms-toolsai|1.0.15| |language-x86-64-assembly|13xforever|3.0.0| |mongodb-vscode|mongodb|0.11.1| |mssql|ms-mssql|1.18.0| |open-in-browser|techer|2.0.0| |python|ms-python|2023.8.0| |quicktype|quicktype|12.0.46| |remote-containers|ms-vscode-remote|0.292.0| |remote-explorer|ms-vscode|0.4.0| |remote-ssh|ms-vscode-remote|0.100.0| |remote-wsl|ms-vscode-remote|0.78.4| |sqf-language|blackfisch|2.1.0| |sqflint|skacekachna|0.12.2| |sql-bindings-vscode|ms-mssql|0.3.0| |sql-database-projects-vscode|ms-mssql|0.21.0| |synthwave-x-fluoromachine-epic-animations|TheCodemonkey|1.4.13| |test-adapter-converter|ms-vscode|0.1.7| |vetur|octref|0.37.3| |vscode-antlr4|mike-lischke|2.3.1| |vscode-docker|ms-azuretools|1.25.0| |vscode-dotnet-runtime|ms-dotnettools|1.6.0| |vscode-drawio|hediet|1.6.6| |vscode-java-debug|vscjava|0.50.0| |vscode-java-dependency|vscjava|0.22.0| |vscode-java-pack|vscjava|0.25.11| |vscode-java-test|vscjava|0.38.2| |vscode-jupyter-cell-tags|ms-toolsai|0.1.8| |vscode-jupyter-slideshow|ms-toolsai|0.1.5| |vscode-kubernetes-tools|ms-kubernetes-tools|1.3.11| |vscode-language-pack-de|MS-CEINTL|1.78.2023050309| |vscode-maven|vscjava|0.41.0| |vscode-nuget-gallery|patcx|0.0.24| |vscode-pylance|ms-python|2023.5.10| |vscode-solution-explorer|fernandoescolar|0.8.2| |vscode-spring-boot|vmware|1.46.0| |vscode-spring-boot-dashboard|vscjava|0.13.0| |vscode-spring-initializr|vscjava|0.11.2| |vscode-thunder-client|rangav|2.6.2| |vscode-vba|serkonda7|0.8.1| |vscode-yaml|redhat|1.12.2| |vscodeintellicode|VisualStudioExptTeam|1.2.30|;