eglot: Allow omnisharp binary to be capitalized "OmniSharp"
authorDamien Cassou <damien@cassou.me>
Thu, 30 Jan 2025 20:44:31 +0000 (21:44 +0100)
committerStefan Kangas <stefankangas@gmail.com>
Sat, 1 Feb 2025 02:28:11 +0000 (03:28 +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)

lisp/progmodes/eglot.el

index 9eb28e34faf37d98151f4612edd41e9512e27738..45e0e7d16cdd1ce4d254cd44b0818043c732622b 100644 (file)
@@ -327,6 +327,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)