| Summary: | [LSP] Add Omnisharp-roslyn C# Language Server to the Default Settings List | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | nekonexus |
| Component: | scripting | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | wishlist | CC: | eric1, nate |
| Priority: | NOR | ||
| Version First Reported In: | 21.12.3 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| URL: | https://github.com/OmniSharp/omnisharp-roslyn/wiki/Configuration-Options | ||
| See Also: | https://bugs.kde.org/show_bug.cgi?id=458624 | ||
| Latest Commit: | https://invent.kde.org/utilities/kate/commit/772a89ac0d2dc957b047cca87fbbb2461de8ef81 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
The provided config is almost correct. The following works for me:
"c-sharp": {
"command": ["omnisharp", "-lsp"],
"commandDebug": ["omnisharp", "--debug", "--verbose"],
"url": "https://github.com/OmniSharp/omnisharp-roslyn",
"highlightingModeRegex": "^C#$"
},
I get some errors in the Output console, but generally it seems to work. Will submit a patch for this.
Git commit 772a89ac0d2dc957b047cca87fbbb2461de8ef81 by Christoph Cullmann, on behalf of Eric Armbruster. Committed on 23/04/2022 at 16:21. Pushed by cullmann into branch 'master'. Add default config for c-sharp language server M +6 -0 addons/lspclient/settings.json https://invent.kde.org/utilities/kate/commit/772a89ac0d2dc957b047cca87fbbb2461de8ef81 |
SUMMARY I realize that Omisharp-roslyn is... feature-filled with its settings configuration; it would be great if getting at least a default implementation in the settings tab for the language servers (or its own tab if it would be large), so that setting it up with Kate isn't a huge hassle by default. As-is, how to configure it for Kate is a bit confusing to get done right since it's quite complex on its own. STEPS TO REPRODUCE 1. Install omnisharp-roslyn 2. Attempt to configure for it in Kate 3. Struggle to get it set-up properly as one would following the existing examples OBSERVED RESULT Setting up omnisharp-roslyn with Kate is seemingly complex by default. It accepts the following but doesn't seem to do anything (not to mention there are many other omnisharp values): { "servers": { "c-sharp": { "command": ["omnisharp", "-lsp", "-e"], "commandDebug": ["omnisharp", "--debug", "--verbose"], "url": "https://github.com/OmniSharp/omnisharp-roslyn", "highlightingModeRegex": "^Cs$" } } } DESIRED RESULT Having an existing preset configuration for omnisharp (STDIO - as it's to my understanding Kate uses it) to tweak as desired, if needed. SOFTWARE/OS VERSIONS Linux: Arch Linux KDE Plasma Version: 5.24.4 KDE Frameworks Version: 5.93.0 Qt Version: 5.15.3 ADDITIONAL INFORMATION N/A