-
I'm having difficulty in setting up TypeScript LSP with helix. Here are the steps that I did:
All the command have been run in Powershell (non-admin) mode. I can confirm that both typescript and typescript-language-server are available in my system PATH. Doing
In the log, is it expecting typescript-language-server to be available? OS: Windows 11 (tried in Windows 10 too) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Yeah, that failure occurs when the LSP binary can't be found. Looks like there's a note in the Rust docs:
I think we'll want to use the which crate to resolve to a full path. Could you try if setting the language server path to an absolute path to the binary would work for you?
[[language]]
name = "typescript"
language-server.command = "full path to binary" |
Beta Was this translation helpful? Give feedback.
-
Adding
Went through the issue you mentioned and also through an LSP installer for Neovim. It does not matter if you are running on PowerShell and could find a |
Beta Was this translation helpful? Give feedback.
Adding
.cmd
solves the issue in Windows.languages.toml
:Went through the issue you mentioned and also through an LSP installer for Neovim. It does not matter if you are running on PowerShell and could find a
.ps1
script file, you would still need.cmd
file instead because it is considered as an executable.