-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
Document JSON-RPC display protocol #422
Comments
Unrelated, but have you considered using the language server / language server protocol directly? |
I have; it works well. It feels like it's tied pretty tightly to the vshaxe plugin, and I'd like something more lightweight. |
Tied tightly to the plugin in what way? Anyway:
What part are you having trouble with? I'd think it's mostly about looking at the type definitions for the available requests, their parameters and their responses (https://github.com/vshaxe/haxe-language-server/tree/master/src/haxeLanguageServer/protocol). |
Perhaps that's not a fair assessment. It's been a while since I've built the lsp server. The only thing I can thing of at the moment is the need to use https://github.com/vshaxe/vshaxe-build in order to build it. (Though I'm sure there are ways around that.) Overall it just didn't seem very simple to implement with non-VSCode editor. At the end of the day, I guess I just don't like the idea of having Emacs talk to a node server which is running on top of Haxe's compilation server. It just feels like overkill. At the moment I'm having trouble figuring out what exactly needs to be sent to the command. I've figured out the I'm trying to figure this out from the terminal at the moment before I move to an elisp implementation. So if I wanted to get a response for hovering over some class name, I'd need to do something like:
I'm going to read some documentation on JSON-RPC; maybe that's what I'm missing. Once the server is running and listening on stdin, it just accepts normal JSON-RPC requests, right? |
|
I've begun looking into https://github.com/vshaxe/haxe-language-server to try to implement the new IDE features in a new Emacs mode, however I can't make heads or tails of how the JSON-RPC works.
Some additional documentation to https://haxe.org/manual/cr-completion-overview.html regarding its usage would be great.
The text was updated successfully, but these errors were encountered: