csharp-language-server
csharp-language-server copied to clipboard
Objects in Linq queries missing type definition on hover
Hi, there. :wave:
I am using csharp-language-server in neovim, and the issue seems to be that I cannot see the type definitions of objects defined in LINQ when using the query syntax.
In the screenshot, I show the vim.lsp.buf.hover() result over the friend variable which was defined inside the same query.
This is what vscode's C# devkit shows for the same query:
I created a minimal reproduction here: linq-minimal-repro.zip
I tested this in a clean Ubuntu 22.04 toolbox container:
# Create toolbox container and use it
toolbox create nvim-minimal --distro ubuntu --release 22.04
toolbox enter nvim-minimal
# Install dependencies
sudo apt update
sudo apt install gcc dotnet-sdk-8.0
dotnet tool install --global csharp-ls
# Use minimal reproduction files
unzip linq-minimal-repro.zip
cd linq-minimal-repro
nvim -u ./minimal_init.lua ./MinimalLinq/Program.cs
In the minimal reproduction configuration, hover is set to the K key.
Thank you, and let me know if I can provide more information or help you. :v: