Skip to content
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

Add TCP feature #33

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add TCP feature #33

wants to merge 2 commits into from

Conversation

blahgeek
Copy link
Owner

@blahgeek blahgeek commented Dec 21, 2024

Fixes #31

This adds experimental support for TCP transport.

It connects to language server using TCP, do the translation, and also serve from TCP itself.

Using this mode with lsp-mode is a little bit complex than stdio, since there does not seem to be an unified way to modify the port or launching command. Personally I don't use any language servers using the TCP transport so I don't really know how to test it. I would appreciate any help on testing or recommendations about configuration on the elisp side.

The rough steps on how to use it:

  1. Launch the original language server that listen on tcp
  2. Launch emacs-lsp-booster with emacs-lsp-booster --tcp -- <server_addr> <listen_addr>, where "server_addr" is the address that the original language server is listening on (e.g. 127.0.0.1:1044), and "listen_addr" is any address you pick for emacs-lsp-booster to listen on (e.g. 127.0.0.1:1045)
  3. Have lsp-mode to connect to the latter address (127.0.0.1:1045) by modifying language-server-specific variables (e.g. lsp-cobol-port)

@anonimitoraf
Copy link

Hi @blahgeek, any ideas why the test pipeline's failing?

@blahgeek
Copy link
Owner Author

Ah the unit tests are not updated yet. It should not matter though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for GDScript LSP
3 participants