zed icon indicating copy to clipboard operation
zed copied to clipboard

C# support

Open undersquire opened this issue 3 years ago • 5 comments
trafficstars

OmniSharp seems to be the best option for a C# language server.

undersquire avatar Jul 13 '22 21:07 undersquire

@JosephTLyons any update on supporting c# in zed?

sheikalthaf avatar Mar 16 '23 03:03 sheikalthaf

Any update on this, VSCode really sucks and drain my battery very fast. Looking forward to the support

sheikalthaf avatar Jul 31 '23 16:07 sheikalthaf

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!

JosephTLyons avatar Aug 03 '23 17:08 JosephTLyons

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.

just-ero avatar Jan 24 '24 21:01 just-ero

I opened a PR for C# support.

fminkowski avatar Jan 28 '24 03:01 fminkowski

C# support shipped with v0.121.0-pre!

JosephTLyons avatar Feb 02 '24 04:02 JosephTLyons

@JosephTLyons

Code action doesn't work, clicking on the suggested code action does not yield any response or result

image

wk-j avatar Feb 04 '24 09:02 wk-j

@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?

luizen avatar Mar 04 '24 11:03 luizen

My advice would be to create a separate issue if one doesn't already exist.

Moshyfawn avatar Mar 04 '24 14:03 Moshyfawn

Omnisharp is slow to start up. Do you still not receive any options after waiting a bit?

fminkowski avatar Mar 06 '24 01:03 fminkowski

I managed to have it finally working by following the workaround described here: https://github.com/zed-industries/zed/issues/8352#issuecomment-1962887464

luizen avatar Mar 06 '24 12:03 luizen

Hello, I need to use the nuget package. How can LSP find the association?

abliger avatar Mar 20 '24 15:03 abliger

Screenshot 2024-04-25 at 11 21 51

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 avatar Apr 25 '24 15:04 davidnagli

@davidnagli you should have been prompted to install the C# extension:

Screenshot 2024-04-25 at 1 29 57 PM

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.

maxbrunsfeld avatar Apr 25 '24 20:04 maxbrunsfeld

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: @.***>

davidnagli avatar Apr 25 '24 21:04 davidnagli

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 avatar Apr 26 '24 09:04 MidKnightXI

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)

davidnagli avatar Apr 26 '24 14:04 davidnagli