branch: externals/eglot
commit eac52646df030ae6907a137a68ac22c324027545
Author: João Távora <[email protected]>
Commit: João Távora <[email protected]>
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'