emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New jrpc.el JSONRPC library


From: Josh Elsasser
Subject: Re: New jrpc.el JSONRPC library
Date: Sun, 20 May 2018 13:35:14 -0700

On May 20, 2018, at 12:13 PM, Clément Pit-Claudel <address@hidden> wrote:
> On 2018-05-20 11:54, João Távora wrote:
>> In fact, no. At least not ideally. *All* of LSP is
>> language-agnostic.
> 
> Doesn't LSP-mode let you use language-specific additions, for modes that 
> require more complex interaction than the default style?

Yes, there’s some LSP-mode package right now with a broad set of custom 
extensions. cquery[1] has a set of extensions to provide richer 
cross-references, colour inactive code regions, and run semantic highlighting 
over a file. They hook in via an lsp-mode primitive right now 
(`lsp-client-on-notification-client’) that registers callback for custom JSON 
RPC methods.

After working through the eglot.el source, it looks like the same thing could 
be managed by just defining a `eglot—server-myLangServer/customMethodName` 
handler. The API for sending/receive input from the server looks really clean, 
too -- the various custom extensions floating around out there could easily be 
implemented as langserver-specific packages with a depend on eglot.el


[1]: https://github.com/cquery-project/emacs-cquery


reply via email to

[Prev in Thread] Current Thread [Next in Thread]