eglot: Allow omnisharp binary to be capitalized "OmniSharp"

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)
This commit is contained in:
Damien Cassou 2025-01-30 21:44:31 +01:00 committed by Stefan Kangas
parent 5485ea6aef
commit 87be3aa149

View file

@ -327,6 +327,7 @@ automatically)."
((csharp-mode csharp-ts-mode) ((csharp-mode csharp-ts-mode)
. ,(eglot-alternatives . ,(eglot-alternatives
'(("omnisharp" "-lsp") '(("omnisharp" "-lsp")
("OmniSharp" "-lsp")
("csharp-ls")))) ("csharp-ls"))))
(purescript-mode . ("purescript-language-server" "--stdio")) (purescript-mode . ("purescript-language-server" "--stdio"))
((perl-mode cperl-mode) ((perl-mode cperl-mode)