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

Support multiple servers #28

Merged
merged 1 commit into from
Sep 1, 2021
Merged

Support multiple servers #28

merged 1 commit into from
Sep 1, 2021

Conversation

kazk
Copy link
Member

@kazk kazk commented Sep 1, 2021

Multiple servers can be registered by separating each with an option delimiter, and using the query parameter name to specify the command name on connection.
If no query parameter is present, the first one is started.

lsp-ws-proxy --listen 9999 --sync --remap \
    -- typescript-language-server --stdio \
    -- css-languageserver --stdio \
    -- html-languageserver --stdio

Choose the server with query parameter name when connecting:

  • JS/TS: ws://localhost:9999 or ws://localhost:9999?name=typescript-language-server
  • CSS: ws://localhost:9999?name=css-languageserver
  • HTML: ws://localhost:9999?name=html-languageserver

@kazk kazk merged commit 2ca5fd7 into master Sep 1, 2021
@kazk kazk deleted the multiple-servers branch September 1, 2021 05:49
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.

1 participant