-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C# support #5299
Comments
@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. |
This PR adds the C# tree-sitter grammar. It also adds OmniSharp-Roslyn for LSP support. Resolves issue [#5299](#5299) Release Notes: - Added C# support ## VSCode <img width="984" alt="vscode" src="https://github.com/zed-industries/zed/assets/6967829/1f6b4cb7-4e00-4d61-8e58-2867dc5c8ecf"> ## Zed <img width="1722" alt="zed" src="https://github.com/zed-industries/zed/assets/6967829/88436c78-93de-4e26-be15-b0dea6590c55">
C# support shipped with v0.121.0-pre! |
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: #8352 (comment) |
Hello, I need to use the nuget package. How can LSP find the association? |
@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 |
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
<#5299 (comment)>,
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. |
@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) |
OmniSharp seems to be the best option for a C# language server.
The text was updated successfully, but these errors were encountered: