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

What steps did you take to publish your language server for use in other editors besides Visual Studio Code? #14

Closed
hamirmahal opened this issue Nov 20, 2021 · 2 comments

Comments

@hamirmahal
Copy link

I'm looking to do something similar, and I think I have almost the same setup as you, with client and server subdirectories, and the VSCode LSP example as a template. I'm not sure how to take the language server I think I have basically living in a server subdirectory, and "export", or "publish" that so can we use it with other LSP-compliant editors like Vim.

@Beaglefoot
Copy link
Owner

In this case you need to exchange messages through stdin/stdout and create some kind of CLI for your server. Here's some related code:

https://github.com/Beaglefoot/awk-language-server/blob/master/server/src/server.ts#L32
https://github.com/Beaglefoot/awk-language-server/blob/master/server/src/cli.ts

Please use Discussions instead of Issues for questions like these.

@hamirmahal
Copy link
Author

Sorry about that. I usually look for the Discussions tab, first, but the repositories I've been looking at relatively recently don't have them, so I got into the habit of going straight to the "Issues" section to ask questions.

I just opened a Discussion for a new topic that's not heavily related to this one.

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

No branches or pull requests

2 participants