Allow tide to find the appropriate tsserver

This commit is contained in:
Tony Garnock-Jones 2021-03-10 23:14:54 +01:00
parent 036d42a73a
commit 7c587f03d3
1 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,6 @@
((nil . ((eval .
(setq tide-tsserver-executable
(concat
(let ((d (dir-locals-find-file ".")))
(if (stringp d) d (car d)))
"node_modules/typescript/lib/tsserver.js"))))))