]> 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)
committerJoão Távora <joaotavora@gmail.com>
Tue, 14 Nov 2023 00:06:24 +0000 (00:06 +0000)
bug#67150

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

lisp/progmodes/eglot.el

index 816f6952d2e68217adb54583e2c2cccfc739cc92..f6c57125fd323d4f9925c7677ba390fa4d8acc76 100644 (file)
@@ -221,7 +221,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)