From: Brian Leung Date: Tue, 25 Oct 2022 03:46:41 +0000 (-0700) Subject: eglot-server-programs: Account for new ts-mode X-Git-Tag: emacs-29.0.90~1616^2~476 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bb95e597a9adcba0080cba85b2270fdf80696b3a;p=emacs.git eglot-server-programs: Account for new ts-mode 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) --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 9264a5b0f08..a28df6c2d52 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -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)