branch: externals/eglot
commit f68f829f536557e3444a92d4a4b7f911b74f9b81
Author: João Távora <[email protected]>
Commit: João Távora <[email protected]>
Close #566: prefer typescript-language-server for JS&TS
* README.md (Connecting to a server): Prefer
typescript-language-server.
* eglot.el (eglot-server-programs): Use
typescript-language-server.
---
README.md | 4 ++--
eglot.el | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index af8621c..8007499 100644
--- a/README.md
+++ b/README.md
@@ -37,7 +37,7 @@ find-library` can help you tell if that happened.
`M-x eglot` can guess and work out-of-the-box with these servers:
-* Javascript's [javascript-typescript-stdio][javascript-typescript-langserver]
+* Javascript's [TS & JS Language Server ][typescript-language-server]
* Rust's [rls][rls]
* Python's [pyls][pyls]
* Ruby's [solargraph][solargraph]
@@ -515,7 +515,7 @@ Under the hood:
[pyls]: https://github.com/palantir/python-language-server
[gnuelpa]: https://elpa.gnu.org/packages/eglot.html
[melpa]: http://melpa.org/#/eglot
-[javascript-typescript-langserver]:
https://github.com/sourcegraph/javascript-typescript-langserver
+[typescript-language-server]:
https://github.com/theia-ide/typescript-language-server
[emacs-lsp]: https://github.com/emacs-lsp/lsp-mode
[emacs-lsp-plugins]: https://github.com/emacs-lsp
[bash-language-server]: https://github.com/mads-hartmann/bash-language-server
diff --git a/eglot.el b/eglot.el
index 3ea8a2f..158a108 100644
--- a/eglot.el
+++ b/eglot.el
@@ -99,7 +99,7 @@
(python-mode . ("pyls"))
((js-mode
typescript-mode)
- . ("javascript-typescript-stdio"))
+ . ("typescript-language-server" "--stdio"))
(sh-mode . ("bash-language-server" "start"))
(php-mode
. ("php" "vendor/felixfbecker/\