]> 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)
committerEshel Yaron <me@eshelyaron.com>
Thu, 14 Dec 2023 12:11:27 +0000 (13:11 +0100)
commit6dca95911aa51d55e9fce183f8554837d309910d
tree29ebd04c352b2524c0b68ead5b165ff2242e2648
parent70c8cab0e811f23be370d7e2f7c3dd4c7834c47f
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.

(cherry picked from commit ea29a48da13d6e6b87a3b017bcf92689bc18ca54)
doc/lispref/text.texi
lisp/jsonrpc.el
test/lisp/progmodes/eglot-tests.el