Skip to content

Commit 3154b6c

Browse files
seagle0128yyoncho
authored andcommitted
Fix wrong javascript-typescript-langserver in lsp-clients. (#509)
1 parent 4ba1189 commit 3154b6c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lsp-clients.el

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ This directory shoud contain a file matching groovy-language-server-*.jar"
8989
:server-id 'html-ls))
9090

9191
;;; Typescript
92-
(defcustom lsp-clients-typescript-server "typescript-language-server"
92+
(defcustom lsp-clients-typescript-server "javascript-typescript-stdio"
9393
"The typescript-language-server executable to use.
9494
Leave as just the executable name to use the default behavior of
9595
finding the executable with `exec-path'."
@@ -106,11 +106,10 @@ finding the executable with `exec-path'."
106106
(defun lsp-typescript--ls-command ()
107107
"Generate the language server startup command."
108108
`(,lsp-clients-typescript-server
109-
"--stdio"
110109
,@lsp-clients-typescript-server-args))
111110

112111
(lsp-register-client
113-
(make-lsp-client :new-connection (lsp-stdio-connection '("typescript-language-server" "--stdio"))
112+
(make-lsp-client :new-connection (lsp-stdio-connection (lsp-typescript--ls-command))
114113
:major-modes '(typescript-mode js-mode js2-mode rjsx-mode)
115114
:server-id 'ts-ls))
116115

0 commit comments

Comments
 (0)