Skip to content

Commit e7b86d0

Browse files
authored
Make paths for typescript-language-server configurable (#2631)
* Make paths for typescript-language-server configurable * Remove tsserver configuration and move tls option to lsp-dependency
1 parent fcea313 commit e7b86d0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

clients/lsp-javascript.el

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@
6868
:group 'lsp-mode
6969
:link '(url-link "https://github.com/theia-ide/typescript-language-server"))
7070

71+
(defcustom lsp-clients-typescript-tls-path "typescript-language-server"
72+
"Path to the typescript-language-server binary."
73+
:group 'lsp-typescript
74+
:risky t
75+
:type 'string)
76+
7177
(defcustom lsp-clients-typescript-server-args '("--stdio")
7278
"Extra arguments for the typescript-language-server language server."
7379
:group 'lsp-typescript
@@ -98,7 +104,7 @@ directory containing the package. Example:
98104
xs)))))
99105

100106
(lsp-dependency 'typescript-language-server
101-
'(:system "typescript-language-server")
107+
'(:system lsp-clients-typescript-tls-path)
102108
'(:npm :package "typescript-language-server"
103109
:path "typescript-language-server"))
104110

0 commit comments

Comments
 (0)