]> git.eshelyaron.com Git - emacs.git/commitdiff
eglot: Add support for new language server csharp-ls
authorJostein Kjønigsen <jostein@kjonigsen.net>
Thu, 15 Dec 2022 12:44:39 +0000 (13:44 +0100)
committerStefan Kangas <stefankangas@gmail.com>
Fri, 16 Dec 2022 02:09:28 +0000 (03:09 +0100)
C# has two popular language servers: Omnisharp Roslyn (already
supported) and csharp-ls (newer, more performant).

* lisp/progmodes/eglot.el: Add new C# language server
csharp-ls.  (Bug#60089)

lisp/progmodes/eglot.el

index 02bb6bb665d314a5de3125ea5f1932a657aaea70..bb07a06dde8b1b79112829e7b4767a229e9ad2b3 100644 (file)
@@ -241,7 +241,9 @@ chosen (interactively or automatically)."
                                 ((clojure-mode clojurescript-mode clojurec-mode)
                                  . ("clojure-lsp"))
                                 ((csharp-mode csharp-ts-mode)
-                                 . ("omnisharp" "-lsp"))
+                                 . ,(eglot-alternatives
+                                     '(("omnisharp" "-lsp")
+                                       ("csharp-ls"))))
                                 (purescript-mode . ("purescript-language-server" "--stdio"))
                                 ((perl-mode cperl-mode) . ("perl" "-MPerl::LanguageServer" "-e" "Perl::LanguageServer::run"))
                                 (markdown-mode . ("marksman" "server")))