]> git.eshelyaron.com Git - emacs.git/commitdiff
Eglot: Send standard :language-id for typescript-language-server
authorJoão Távora <joaotavora@gmail.com>
Tue, 14 Nov 2023 00:06:24 +0000 (00:06 +0000)
committerEli Zaretskii <eliz@gnu.org>
Tue, 14 Nov 2023 14:26:57 +0000 (16:26 +0200)
bug#67150

* lisp/progmodes/eglot.el (eglot-server-programs): Update
language-id for languages handled by typescript-language-server.

(cherry picked from commit 1fe949888057b0275da041288709bd5690501974)

lisp/progmodes/eglot.el

index 4c5b9c30d91621383e4907a0f518e37e693aee6c..dfeff7143bb7ea9e81508794c6a3e03c04ead93c 100644 (file)
@@ -193,7 +193,11 @@ chosen (interactively or automatically)."
                                  . ,(eglot-alternatives '(("vscode-json-language-server" "--stdio")
                                                           ("vscode-json-languageserver" "--stdio")
                                                           ("json-languageserver" "--stdio"))))
-                                ((js-mode js-ts-mode tsx-ts-mode typescript-ts-mode typescript-mode)
+                                (((js-mode :language-id javascript)
+                                  (js-ts-mode :language-id javascript)
+                                  (tsx-ts-mode :language-id typescriptreact)
+                                  (typescript-ts-mode :language-id typescript)
+                                  (typescript-mode :language-id typescript))
                                  . ("typescript-language-server" "--stdio"))
                                 ((bash-ts-mode sh-mode) . ("bash-language-server" "start"))
                                 ((php-mode phps-mode)