]> git.eshelyaron.com Git - emacs.git/commitdiff
Add js-ts-mode to eglot-server-programs
authorTheodor Thornhill <theo@thornhill.no>
Sat, 26 Nov 2022 20:12:51 +0000 (21:12 +0100)
committerStefan Kangas <stefankangas@gmail.com>
Sun, 27 Nov 2022 06:55:16 +0000 (07:55 +0100)
* lisp/progmodes/eglot.el (eglot-server-programs): Add js-ts-mode as
an alternative.  (Bug#59252)

lisp/progmodes/eglot.el

index 120d4feb951b54508f66aef2c790a04cd6ac05b8..7755353396faae9f4bdee59dbbaef10c5c86e14e 100644 (file)
@@ -190,7 +190,7 @@ chosen (interactively or automatically)."
                                 ((js-json-mode json-mode json-ts-mode)
                                  . ,(eglot-alternatives '(("vscode-json-language-server" "--stdio")
                                                           ("json-languageserver" "--stdio"))))
-                                ((js-mode typescript-ts-mode typescript-mode)
+                                ((js-mode js-ts-mode typescript-ts-mode typescript-mode)
                                  . ("typescript-language-server" "--stdio"))
                                 ((bash-ts-mode sh-mode) . ("bash-language-server" "start"))
                                 ((php-mode phps-mode)