]> git.eshelyaron.com Git - emacs.git/commitdiff
Reply to client/registercapability (don't handle it yet)
authorJoão Távora <joaotavora@gmail.com>
Fri, 4 May 2018 12:36:33 +0000 (13:36 +0100)
committerJoão Távora <joaotavora@gmail.com>
Fri, 4 May 2018 13:00:32 +0000 (14:00 +0100)
* eglot.el (eglot--server-client/registerCapability): New
function.

lisp/progmodes/eglot.el

index 332f1fe849e2f78ca87864f317f9819882440717..d073be2603ed07ac9a46b07d60c818b2dcf2129f 100644 (file)
@@ -962,6 +962,19 @@ running.  INTERACTIVE is t if called interactively."
      (t
       (eglot--message "OK so %s isn't visited" filename)))))
 
+(cl-defun eglot--server-client/registerCapability
+    (proc &key id registrations)
+  "Handle notification client/registerCapability"
+  (mapc (lambda (reg)
+          (apply (cl-function
+                  (lambda (&key _id _method _registerOptions)
+                    ;;; TODO: handle this
+                    ))
+                 reg))
+        registrations)
+  (eglot--reply proc id :error (eglot--obj :code -32601
+                                           :message "sorry :-(")))
+
 (defvar eglot--recent-before-changes nil
   "List of recent changes as collected by `eglot--before-change'.")
 (defvar eglot--recent-after-changes nil