[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
- [ELPA] New package: eglot, João Távora, 2018/05/10
- Re: [ELPA] New package: eglot, Eli Zaretskii, 2018/05/11
- Re: [ELPA] New package: eglot, João Távora, 2018/05/11
- New jrpc.el JSONRPC library (Was: [ELPA] New package: eglot), João Távora, 2018/05/18
- Re: New jrpc.el JSONRPC library, Clément Pit-Claudel, 2018/05/20
- Re: New jrpc.el JSONRPC library,
Josh Elsasser <=
- Re: New jrpc.el JSONRPC library, João Távora, 2018/05/20
- Re: New jrpc.el JSONRPC library, Josh Elsasser, 2018/05/20
- Re: New jrpc.el JSONRPC library, João Távora, 2018/05/20
- Re: New jrpc.el JSONRPC library, Clément Pit-Claudel, 2018/05/20
- Re: New jrpc.el JSONRPC library (Was: [ELPA] New package: eglot), Philipp Stephani, 2018/05/19
- Re: New jrpc.el JSONRPC library (Was: [ELPA] New package: eglot), Eli Zaretskii, 2018/05/19
- Re: New jrpc.el JSONRPC library, João Távora, 2018/05/20
- Re: New jrpc.el JSONRPC library, Eli Zaretskii, 2018/05/20
- Re: New jrpc.el JSONRPC library, João Távora, 2018/05/20
- Re: New jrpc.el JSONRPC library, Aaron Ecay, 2018/05/21