You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
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.
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 :)
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 (withnpm run compile
), it's not possible to run the language server itself on its own (withnode .
):I might be wrong, but it appears to me that this app can run in VSCode's
extensionHost
s, which have their ownnode
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).
The text was updated successfully, but these errors were encountered: