From: Jostein Kjønigsen Date: Thu, 15 Dec 2022 12:44:39 +0000 (+0100) Subject: eglot: Add support for new language server csharp-ls X-Git-Tag: emacs-29.0.90~1140 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=546aed35434fb2cd4082dc2cee93236b9b62a60c;p=emacs.git eglot: Add support for new language server csharp-ls 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) --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 02bb6bb665d..bb07a06dde8 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -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")))