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

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

[elpa] externals/eglot eac5264 21/49: Fix #609: flush pending changes to


From: Stefan Monnier
Subject: [elpa] externals/eglot eac5264 21/49: Fix #609: flush pending changes to server before code actions request
Date: Wed, 17 Mar 2021 18:41:46 -0400 (EDT)

branch: externals/eglot
commit eac52646df030ae6907a137a68ac22c324027545
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>

    Fix #609: flush pending changes to server before code actions request
    
    Otherwise the actions returned by the server might be stale when the
    user selects them.
    
    * eglot.el (eglot-code-actions): Issue jsonrpc-request with deferred=t.
---
 eglot.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/eglot.el b/eglot.el
index 98e0bcf..8403e5d 100644
--- a/eglot.el
+++ b/eglot.el
@@ -2554,7 +2554,8 @@ at point.  With prefix argument, prompt for ACTION-KIND."
                                when (cdr (assoc 'eglot-lsp-diag
                                                 (eglot--diag-data diag)))
                                collect it)]
-                   ,@(when action-kind `(:only [,action-kind]))))))
+                   ,@(when action-kind `(:only [,action-kind]))))
+           :deferred t))
          (menu-items
           (or (cl-loop for action across actions
                        ;; Do filtering ourselves, in case the `:only'



reply via email to

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