From 8429c2c2feadf517aae798fa561b5c357cb1415e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Fri, 1 Jun 2018 17:04:17 +0100 Subject: [PATCH] Explicitly trigger eldoc after workspace edits It's usually a nice thing to do. * eglot.el (eglot--apply-workspace-edit): Call eglot-eldoc-function. --- lisp/progmodes/eglot.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 8437d8cc8a3..b133ffbbb20 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/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) -- 2.39.2