sashi0034 / angel-lsp

AngelScript Language Server for VSCode
https://marketplace.visualstudio.com/items?itemName=sashi0034.angel-lsp
MIT License
20 stars 6 forks source link

Usage in other LSP clients? #33

Open shifttab opened 1 month ago

shifttab commented 1 month ago

Is it possible to use or modify this server in other LSP clients? For example in vim-lsp?

sashi0034 commented 1 month ago

The server directory contains the core of the Language Server. You might need to make a few changes, but I think it can be used with other text editor clients as well.

shifttab commented 1 month ago

Unfortunately, I know nothing about javascript. How is your server started? Is there an executable? Like for example, for c++, the server executable is clangd.

sashi0034 commented 1 month ago

This project uses npm, and you can compile it with npm run compile The compiled JavaScript files are output to server/out/. The client app then runs server/out/server.js (you can see this in the following file: https://github.com/sashi0034/angel-lsp/blob/43a7cdb94d179ff0e7bbdb0d5f9aee2a7218f34a/client/src/extension.ts#L21).

By the way, I’m also interested in making it work with other client apps. I'm currently busy, I plan to work on this in the near future.