]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix invocation of elixir LSP server on MS-Windows
authorEli Zaretskii <eliz@gnu.org>
Fri, 24 Mar 2023 18:37:11 +0000 (21:37 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 24 Mar 2023 18:37:11 +0000 (21:37 +0300)
* lisp/progmodes/eglot.el (eglot-server-programs): Invoke the
elixir-ls LSP via a batch file if using an MS-Windows shell.
(Bug#62407)

lisp/progmodes/eglot.el

index 806e498c38cbcc022aa121ec721fda4f34e84ee5..cc9c8115b08c056537dd2b97f2a95f9c3043cd1c 100644 (file)
@@ -222,7 +222,10 @@ chosen (interactively or automatically)."
                                 (dart-mode . ("dart" "language-server"
                                               "--client-id" "emacs.eglot-dart"))
                                 ((elixir-mode elixir-ts-mode heex-ts-mode)
-                                 . ("language_server.sh"))
+                                 . ,(if (and (fboundp 'w32-shell-dos-semantics)
+                                             (w32-shell-dos-semantics))
+                                        '("language_server.bat")
+                                      '("language_server.sh")))
                                 (ada-mode . ("ada_language_server"))
                                 (scala-mode . ,(eglot-alternatives
                                                 '("metals" "metals-emacs")))