From 93d23090d734f234dc64bf61211c45cd921e3dc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85smund=20Grammeltvedt?= Date: Fri, 10 Nov 2023 13:58:31 +0100 Subject: [PATCH] fix(lsp-javascript): Support typescript-language-server 4.1.0 4.1.0 removes support for --tsserver-path (https://github.com/typescript-language-server/typescript-language-server/blob/master/CHANGELOG.md#changelog, https://github.com/typescript-language-server/typescript-language-server/pull/790). The flag has been deprecated for some time in favour of initialization options. --- clients/lsp-javascript.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clients/lsp-javascript.el b/clients/lsp-javascript.el index 99a1c6141ce..a5e6352704c 100644 --- a/clients/lsp-javascript.el +++ b/clients/lsp-javascript.el @@ -805,14 +805,13 @@ name (e.g. `data' variable passed as `data' parameter)." (lsp-register-client (make-lsp-client :new-connection (lsp-stdio-connection (lambda () `(,(lsp-package-path 'typescript-language-server) - "--tsserver-path" - ,(lsp-clients-typescript-server-path) ,@lsp-clients-typescript-server-args))) :activation-fn 'lsp-typescript-javascript-tsx-jsx-activate-p :priority -2 :completion-in-comments? t :initialization-options (lambda () (append + (list :tsserver.path (lsp-clients-typescript-server-path)) (when lsp-clients-typescript-disable-automatic-typing-acquisition (list :disableAutomaticTypingAcquisition lsp-clients-typescript-disable-automatic-typing-acquisition)) (when lsp-clients-typescript-log-verbosity