]> git.eshelyaron.com Git - emacs.git/commitdiff
; Support 'dart-ts-mode' in Eglot
authorEli Zaretskii <eliz@gnu.org>
Tue, 18 Apr 2023 11:49:18 +0000 (14:49 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 18 Apr 2023 11:49:18 +0000 (14:49 +0300)
* lisp/progmodes/eglot.el (eglot-server-programs): Add
'dart-ts-mode'.  Patch by Mou Tong <mou.tong@outlook.com>.
(Bug#62879)

lisp/progmodes/eglot.el

index 9b499b944cd60fa6a28a8264f067a2d5f16f8e9f..ed5540870847a576d68dd3afd019109862afc3ae 100644 (file)
@@ -218,8 +218,9 @@ chosen (interactively or automatically)."
                                 ((R-mode ess-r-mode) . ("R" "--slave" "-e"
                                                         "languageserver::run()"))
                                 ((java-mode java-ts-mode) . ("jdtls"))
-                                (dart-mode . ("dart" "language-server"
-                                              "--client-id" "emacs.eglot-dart"))
+                                ((dart-mode dart-ts-mode)
+                                 . ("dart" "language-server"
+                                    "--client-id" "emacs.eglot-dart"))
                                 (elixir-mode . ("language_server.sh"))
                                 (ada-mode . ("ada_language_server"))
                                 (scala-mode . ,(eglot-alternatives