How to configure typescript-language-server?
#1567
-
|
The value I want to update is Following https://elpa.gnu.org/devel/doc/eglot.html#Advanced-server-configuration I tried these approaches (and a few variations): (with-eval-after-load 'eglot
(add-to-list
'eglot-server-programs
'(typescript-ts-mode . ("typescript-language-server" "--stdio" :initializationOptions (:implicitProjectConfiguration (:target "nodenext"))))))(with-eval-after-load 'eglot
(setq-default eglot-workspace-configuration '(:implicitProjectConfiguration (:target "nodenext"))))Apparently no effect. GNU Emacs 31.0.50; |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Clearly, typescript fairies have eaten your config! 🧚 🧚 🧚 Don't believe me? Prove me wrong! (hint: to prove me wrong, use It is possible that your plist needs to be: If nothing works, then I can't help you, because typescript-language-server (at least the one I'm using) is very silent about what it is doing. For example in some microproject where I'm testing something else, this is the conversation. Notices it doesn't say anything about some unrelated "gopls" settings I'm sending it in a |
Beta Was this translation helpful? Give feedback.
-
|
Oh my.. it ended up that "nodenext" is a value for the
|
Beta Was this translation helpful? Give feedback.
Clearly, typescript fairies have eaten your config! 🧚 🧚 🧚 Don't believe me? Prove me wrong!
(hint: to prove me wrong, use
M-x eglot-events-bufferor send a reproducible error recipe as described in that page, including a toy project and information about the effect that you expected and the effect you observed.)It is possible that your plist needs to be:
'(:typescript (:implicitProjectConfiguration (:target "nodenext")))or'(:typescript-language-server (:implicitProjectConfiguration (:target "nodenext"))). Or not.If nothing works, then I can't help you, because typescript-language-server (at least the one I'm using) is very silent about what it is doing. For exa…