-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for typescript.tsdk with tsserverPath #6
Comments
I do have plans to add flags that looks something like this. But first I need to support for basic args |
You can now use C:\tmp\typescript-language-server>typescript-language-server --help
Usage: typescript-language-server [options]
Options:
-V, --version output the version number
--stdio use stdio
--node-ipc use node-ipc
--socket <port> use socket. example: --socket=5000
--tsserver-path <path> absolute path to tsserver. example: --tsserver-path=c:\tsc\tsserver.cmd
-h, --help output usage information For now I will leave this issue open since I would still like to support |
IMHO I think there are 2 problems with the tsserverPath:
tsserver.bat
/tsserver
is searched in the %PATH (when you install TypeScript in global npm registry). In my case I had a very old installed TypeScript and I was not able to consume navtree. I thinktsserver.bat
/tsserver
should be searched at first time with require.resolve like this:typescript.tsdk
settings (your tsserverPath) like VSCode does https://code.visualstudio.com/docs/languages/typescript#_using-newer-typescript-versionsIt will be more easy to use it with VSCode.
The text was updated successfully, but these errors were encountered: