zed
zed copied to clipboard
C# support
@JosephTLyons any update on supporting c# in zed?
Any update on this, VSCode really sucks and drain my battery very fast. Looking forward to the support
We aren't working on supporting C# directly, but we are working on extensible language support now, so the community could add this once that lands!
Roslyn's Language Server Protocol recently went open source: https://github.com/dotnet/roslyn/tree/main/src/Features/LanguageServer.
It should be more trivial to support all languages which use Roslyn as a compiler (C#, VisualBasic) now.
I opened a PR for C# support.
C# support shipped with v0.121.0-pre!
@JosephTLyons
Code action doesn't work, clicking on the suggested code action does not yield any response or result
@JosephTLyons
Code action doesn't work, clicking on the suggested code action does not yield any response or result
Same here. Nothing happens when I click any of the options (Go To Definition / Find All References, etc). Am I missing something?
My advice would be to create a separate issue if one doesn't already exist.
Omnisharp is slow to start up. Do you still not receive any options after waiting a bit?
I managed to have it finally working by following the workaround described here: https://github.com/zed-industries/zed/issues/8352#issuecomment-1962887464
Hello, I need to use the nuget package. How can LSP find the association?
I'm running the latest Zed release (Zed 0.132.2) but I don't see C# in the language selector... am I doing something wrong?
@davidnagli you should have been prompted to install the C# extension:
Did that prompt not show up for you?
In any case, you can fix this by opening the Extensions pane, searching for C#, and installing the extension.
Strange, that prompt didn't show up but all good I found the extension and installed it. Thanks!
Once I installed it and configured it I had a memory leak and crash (over 5GB RAM used by Zed!), but I'll open a separate issue for that :)
On Thu, Apr 25, 2024 at 4:31 PM Max Brunsfeld @.***> wrote:
@davidnagli https://github.com/davidnagli you should have been prompted to install the C# extension:
Screenshot.2024-04-25.at.1.29.57.PM.png (view on web) https://github.com/zed-industries/zed/assets/326587/5dae4f16-5597-47f9-b45a-b9e06bf9dbda
Did that prompt not show up for you?
In any case, you can fix this by opening the Extensions pane, searching for C#, and installing the extension.
— Reply to this email directly, view it on GitHub https://github.com/zed-industries/zed/issues/5299#issuecomment-2078123598, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTSJYUFDI7BHWGOPL776XDY7FR3JAVCNFSM6AAAAABCJF4ONOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZYGEZDGNJZHA . You are receiving this because you were mentioned.Message ID: @.***>
Is it normal that I don't have any suggestions anymore for my projects in ASPNET, it was working fine some time ago and tried it out recently and nothing ?
The extension is installed on my side but I just have the "colorization" of code but nothing else?
Is it a known issue or did I do something wrong?
I tried uninstalling and reinstalling the extension and also Zed (who knows, could work) but still have the issue.
I managed to have it finally working by following the workaround described here: #8352 (comment)
@MidKnightXI Seems like a known-ish issue with a workaround which can be found there ^
I followed the workaround yesterday and it fixed my issue and got the actual language server to start (not just syntax highlighting)