]> git.eshelyaron.com Git - emacs.git/commit
Jsonrpc: support some JSONesque non-JSONRPC protocols, like DAP
authorJoão Távora <joaotavora@gmail.com>
Wed, 8 Nov 2023 14:36:04 +0000 (08:36 -0600)
committerJoão Távora <joaotavora@gmail.com>
Thu, 14 Dec 2023 00:55:52 +0000 (00:55 +0000)
commitea29a48da13d6e6b87a3b017bcf92689bc18ca54
tree3797d254321ca2e10ad3455cd301dee139211391
parent60473c4d90a6cdce3f06e183809f5be440dd8797
Jsonrpc: support some JSONesque non-JSONRPC protocols, like DAP

* lisp/jsonrpc.el (jsonrpc-convert-to-endpoint)
(jsonrpc-convert-from-endpoint): New generics.
(jsonrpc-connection-send): Call jsonrpc-convert-to-endpoint.
Rework logging.
(jsonrpc-connection-receive): Call jsonrpc-convert-from-endpoint.
Rework logging. jsonrpc--reply with METHOD.
(jsonrpc--log-event): Take subtype.
(Version): Bump to 1.0.19

* test/lisp/progmodes/eglot-tests.el (eglot--sniffing): Adapt
to new protocol of jsonrpc--log-event.

* doc/lispref/text.texi (JSONRPC Overview): Rework.
doc/lispref/text.texi
lisp/jsonrpc.el
test/lisp/progmodes/eglot-tests.el