C# OmniSharp LSP #13623
Replies: 2 comments 2 replies
-
|
I have omnisharp working with no issues. The only default config override I added was to increase the timeout, since omnisharp can take a while to start up on larger projects. # Default LSP Overrides
[language-server.omnisharp]
timeout = 120The couple times I have had issues I just navigated to the solution directory and ran My global config is this... {
"FormattingOptions": {
"EnableEditorConfigSupport": true,
"OrganizeImports": true
},
"RoslynExtensionsOptions": {
"enableImportCompletion": true,
"enableDecompilationSupport": true
}
} |
Beta Was this translation helpful? Give feedback.
-
|
There's also dotnet's Install via [language-server.roslyn-language-server]
command = "roslyn-language-server"
args = [ "--stdio", "--autoLoadProjects" ]
# ...
[[language]]
name = "c-sharp"
language-servers = ["roslyn-language-server"] |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I hate to revive unanswered discussion, but I see a lot of people struggling with C# LSP and no good solution for that.
So far I tried adding OmniSharp to
path, configuring it directly (see below) and playing around with switches and configuration.I can't make it work, I only found following logs:
helix_lsp::client [WARN] language server failed to terminate gracefully - server closed the stream.with genericSystem.InvalidOperationException: Enumeration already finished.exception on OmniSharp sidehelix_lsp·[ERROR]·failed·to·initialize·language·server:·request·0·timed·outhelix_term::application·[ERROR]·Discarding·publishDiagnostic·notification·sent·by·an·uninitialized·server:·omnisharpI run Windows and tried various versions of OmniSharp and dotnet SDKs.
Is there anybody that has working C# LSP with OOTB configuration of Helix?
Are you guys using additional configuration for the LSP?
Beta Was this translation helpful? Give feedback.
All reactions