Sublime Forum

How to use client in windows with lsp in wsl

#1

Is there any way to use sublime text 4 client in windows but use language server in wsl via lsp?

I tried but didn’t succeed.

Thanks for your reading.

0 Likes

#2

Yes (if I’m understanding you correctly).

I guess the trick is that you might need Windows binaries for the LSP that’s running. So for example, if you want to run eslint, you need to run npm install in Windows command line or Powershell so you get an eslint.cmd file build in your node_modules/.bin directory. I delete my node_modules directory semi-frequently, so I keep a copy of eslint.cmd in a separate directory and copy it back to the .bin directory after doing a fresh npm install in the linux WSL.

0 Likes

#3

hmm, thanks for sharing:kissing_heart:

0 Likes