LSP over TCP Socket #690
-
How to configure the editor? For example, the language server is clangd. clangd can be started in TCP Mode:
I searched for a while. It seems ecode does support LSP over TCP Socket: #84 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
clangd does not support TCL socket connections (maybe you asked AI and hallucinated?). But basically you need to setup a new server on your configuration, something like:
This will not execute the binary for you, it will connect though a TCP socket. It's possible to do both things though. You just need to add the commnad, in your example would be the one you mentioned : I haven't tested much the TCP socket connection because not many LSP provide the option, but worked fine with the ones I tested. |
Beta Was this translation helpful? Give feedback.
clangd does not support TCL socket connections (maybe you asked AI and hallucinated?).
But basically you need to setup a new server on your configuration, something like:
This will not execute the binary for you, it will connect though a TCP socket. It's possible to do both things though. You just need to add the commnad, in your example would be the one you mentioned :
"command": "clangd --enable-tcp --tcp-bind-address=127.0.0.1 --port=8080"
I haven't tested much the TCP socket connection…