How to connect helix to a *running* language server? #7744
-
I'm writing a SQL language server and would like to be able to monitor and debug the LSP logs directly. How can I prevent helix from starting up a new instance of the LSP server each time, and instead connect to the one I have running in a terminal instance? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That's not possible, the LSP is usually a single client multi server paradigm. The editor spawns and fully owns the server, communication is done over stdout/stdin pipes. If you start your server externally helix can not connect to stdout/stdin pipes. You can simply test the server by running helix with |
Beta Was this translation helpful? Give feedback.
That's not possible, the LSP is usually a single client multi server paradigm. The editor spawns and fully owns the server, communication is done over stdout/stdin pipes. If you start your server externally helix can not connect to stdout/stdin pipes.
You can simply test the server by running helix with
hx -v
which will print any output of the server into hekixes log file (which you can show with tail -f)