]> git.eshelyaron.com Git - emacs.git/commitdiff
eglot: Allow omnisharp binary to be capitalized "OmniSharp"
authorDamien Cassou <damien@cassou.me>
Thu, 30 Jan 2025 20:44:31 +0000 (21:44 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 3 Feb 2025 11:11:58 +0000 (12:11 +0100)
Some distributors (e.g. nixpkgs) provide a binary "OmniSharp" instead of
"omnisharp", which breaks on case-sensitive file-systems.

* lisp/progmodes/eglot.el (eglot-server-programs): Add "OmniSharp" as a
valid binary name to search for.  (Bug#75954)

(cherry picked from commit 87be3aa1491d5016da8ddb2e896720c53d153643)

lisp/progmodes/eglot.el

index 06db08df17ccc3efd4f6a3fd64241ae00dbf374c..4dcc0fbe974e4fba0395a39cee6fc7f57f4a1725 100644 (file)
@@ -323,6 +323,7 @@ automatically)."
     ((csharp-mode csharp-ts-mode)
      . ,(eglot-alternatives
          '(("omnisharp" "-lsp")
+           ("OmniSharp" "-lsp")
            ("csharp-ls"))))
     (purescript-mode . ("purescript-language-server" "--stdio"))
     ((perl-mode cperl-mode)