]> git.eshelyaron.com Git - emacs.git/commitdiff
eglot-server-programs: Account for new ts-mode
authorBrian Leung <leungbk@posteo.net>
Tue, 25 Oct 2022 03:46:41 +0000 (20:46 -0700)
committerStefan Kangas <stefankangas@gmail.com>
Tue, 25 Oct 2022 10:13:25 +0000 (12:13 +0200)
At the time of writing, this exists only in the unmerged tree-sitter
branch.  It is not harmful to include, however.

* lisp/progmodes/eglot.el (eglot-server-programs): Add new major mode
to be used with the typescript-language-server.  (Bug#58769)

lisp/progmodes/eglot.el

index 9264a5b0f08815a7cbbb4531d4d37727a75af75d..a28df6c2d520018ac6f7856c40d06ee93c9b0380 100644 (file)
@@ -187,7 +187,7 @@ chosen (interactively or automatically)."
                                  . ,(eglot-alternatives
                                      '("pylsp" "pyls" ("pyright-langserver" "--stdio") "jedi-language-server")))
                                 ((js-json-mode json-mode) . ,(eglot-alternatives '(("vscode-json-language-server" "--stdio") ("json-languageserver" "--stdio"))))
-                                ((js-mode typescript-mode)
+                                ((js-mode ts-mode typescript-mode)
                                  . ("typescript-language-server" "--stdio"))
                                 (sh-mode . ("bash-language-server" "start"))
                                 ((php-mode phps-mode)