-
Notifications
You must be signed in to change notification settings - Fork 60
Publish LSP to npm #734
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
Publish LSP to npm #734
Conversation
Great stuff! One thing I'd like to mull over a bit before going this route is that there might be a separate case for publishing just the analysis binary to npm, by itself. That would be because the analysis binary might in the future contain more general tooling, not just stuff for powering the LSP. Doc extraction is one example where it's possible that's the easiest way of distributing it. This package will have the analysis bin too of course. So maybe there's a way to name this (and expose the analysis bin separately) so that they can be exposed via the same package, without it being fantastically confusing.. Let me think a bit. Any feedback welcome. |
Perhaps only expose the part of the analysis binary which is for public consumption. Without even leaking the existence of the binary (helps keeping freedom to move stuff between binary and ts). |
If I understand correctly, as reported by users the main problem is that we don't publish an LSP like OCaml does to facilitate the setup in several editors. Just publishing the analysis binary does not resolve the reported issue.
One idea is to do what
|
Ready for review. |
The first version should be |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! I think 1.20.0
for the version is right, it's nice to have the same as the actual extension.
Fantastic to get this out.
rescriptls
. Support two channelsstdio
andnode-ipc
node-ipc
channelRelated #354