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

Feature request: make the language server independent from VSCode #38

Open
pasqu4le opened this issue Sep 24, 2024 · 1 comment
Open

Comments

@pasqu4le
Copy link

First of all: nice extension!
I've tried it on VSCode where the installation went smoothly and I was able to give a try to all the mentioned features.

However, I was also attempting to use it with other editors that have LSP support (Sublime Text in my specific case) and had trouble doing that.

AFAICT while it's possible to get all the deps (with npm install) and build the extension (with npm run compile), it's not possible to run the language server itself on its own (with node .):

Error: Cannot find module 'vscode'

I might be wrong, but it appears to me that this app can run in VSCode's extensionHosts, which have their own node runtime, but not otherwise.

It would be nice to be able to run it stand-alone instead and have instructions on how to do so, as this would allow other text editors to use it as well (with some configuration).

@williamthome
Copy link
Owner

Yeah, this lib is more a VSCode extension than a Language Server.
The server and the client should be separated to make it work independently, and that's not the case of zotonic-ls, they are in the same code.

See those links as ref:

I worked on this lib a while ago but have never used it extensively, so It's not my priority.
I can take a look, but I don't know when.
Anyway, making it work as a "true" LS would be very nice!
If you find an easy way to do it, let me know! Also, contributions are welcome :)

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