]> git.eshelyaron.com Git - emacs.git/commitdiff
Workaround rls's regusal to treat nil as empty json object
authorJoão Távora <joaotavora@gmail.com>
Fri, 4 May 2018 10:54:06 +0000 (11:54 +0100)
committerJoão Távora <joaotavora@gmail.com>
Fri, 4 May 2018 10:54:06 +0000 (11:54 +0100)
* eglot.el (eglot--connect): Use dummy params.

lisp/progmodes/eglot.el

index 0300ad3da09bf4109865250ea117fbf86f508cbf..8f371d2011bf47dd561f1883c4210a34550c0f95 100644 (file)
@@ -229,7 +229,7 @@ SUCCESS-FN with no args if all goes well."
             (setf (eglot--capabilities proc) capabilities)
             (setf (eglot--status proc) nil)
             (when success-fn (funcall success-fn proc))
-            (eglot--notify proc :initialized nil))))))))
+            (eglot--notify proc :initialized (eglot--obj :__dummy__ t)))))))))
 
 (defvar eglot--command-history nil
   "History of COMMAND arguments to `eglot'.")