emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/eglot 8f17393 5/8: Explicitly trigger eldoc after works


From: João Távora
Subject: [elpa] externals/eglot 8f17393 5/8: Explicitly trigger eldoc after workspace edits
Date: Fri, 1 Jun 2018 12:58:25 -0400 (EDT)

branch: externals/eglot
commit 8f1739307d6d0f0da1ec6659d683cb405fcb374c
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    Explicitly trigger eldoc after workspace edits
    
    It's usually a nice thing to do.
    
    * eglot.el (eglot--apply-workspace-edit): Call
    eglot-eldoc-function.
---
 eglot.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eglot.el b/eglot.el
index 8437d8c..b133ffb 100644
--- a/eglot.el
+++ b/eglot.el
@@ -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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]