Function: eglot--register-unregister
eglot--register-unregister is a byte-compiled function defined in
eglot.el.gz.
Signature
(eglot--register-unregister SERVER THINGS HOW)
Documentation
Helper for registerCapability.
THINGS are either registrations or unregisterations (sic).
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/eglot.el.gz
(cl-defun eglot--register-unregister (server things how)
"Helper for `registerCapability'.
THINGS are either registrations or unregisterations (sic)."
(cl-loop
for thing in (cl-coerce things 'list)
do (eglot--dbind ((Registration) id method registerOptions) thing
(apply (cl-ecase how
(register 'eglot-register-capability)
(unregister 'eglot-unregister-capability))
server (intern method) id registerOptions))))