Get LSP working for dotnet (.cs) #1981

Closed
opened 2026-02-16 17:33:33 -05:00 by yindo · 1 comment
Owner

Originally created by @bw-flagship on GitHub (Oct 7, 2025).

I try to use opencode for my c# project with LSP. However, this command:

opencode debug lsp diagnostics <MyFilePath>.cs

always returns

{}

Even if I definitely put errors in the given file, the response does not change.

dotnet sdk is installed.

Is there any way I can further investigate this myself?

Thanks!

Originally created by @bw-flagship on GitHub (Oct 7, 2025). I try to use opencode for my c# project with LSP. However, this command: `opencode debug lsp diagnostics <MyFilePath>.cs` always returns `{}` Even if I definitely put errors in the given file, the response does not change. dotnet sdk is installed. Is there any way I can further investigate this myself? Thanks!
yindo closed this issue 2026-02-16 17:33:33 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 7, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #1808: C# language server (csharp-ls) doesn't work - This issue describes the exact same problem with C# LSP diagnostics returning empty results even when there are clear errors in the file, including detailed debug logs showing the same behavior

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 7, 2025): This issue might be a duplicate of existing issues. Please check: - #1808: C# language server (csharp-ls) doesn't work - This issue describes the exact same problem with C# LSP diagnostics returning empty results even when there are clear errors in the file, including detailed debug logs showing the same behavior Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1981