]> git.eshelyaron.com Git - emacs.git/commitdiff
Explicitly trigger eldoc after workspace edits
authorJoão Távora <joaotavora@gmail.com>
Fri, 1 Jun 2018 16:04:17 +0000 (17:04 +0100)
committerJoão Távora <joaotavora@gmail.com>
Fri, 1 Jun 2018 16:12:25 +0000 (17:12 +0100)
It's usually a nice thing to do.

* eglot.el (eglot--apply-workspace-edit): Call
eglot-eldoc-function.

lisp/progmodes/eglot.el

index 8437d8cc8a343f80e7222cc578825d4d1311bb7e..b133ffbbb2082a8eec7ae8391434f3c2e8f4ca98 100644 (file)
@@ -1216,7 +1216,6 @@ Records START, END and PRE-CHANGE-LENGTH locally."
           (cl-loop for (beg end len text) in (reverse eglot--recent-changes)
                    vconcat `[,(list :range `(:start ,beg :end ,end)
                                     :rangeLength len :text text)]))))
-      
       (setq eglot--recent-changes nil)
       (setf (eglot--spinner server) (list nil :textDocument/didChange t))
       (eglot--call-deferred server))))
@@ -1554,6 +1553,7 @@ If SKIP-SIGNATURE, don't try to send textDocument/signatureHelp."
                           (pop prepared))))
         (if prepared (eglot--warn "Caution: edits of files %s failed."
                                   (mapcar #'car prepared))
+          (eglot-eldoc-function)
           (eglot--message "Edit successful!"))))))
 
 (defun eglot-rename (newname)