[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'
- [elpa] externals/eglot 33e83ba 44/49: Fix #638: convert colon to hex in URI, (continued)
- [elpa] externals/eglot 33e83ba 44/49: Fix #638: convert colon to hex in URI, Stefan Monnier, 2021/03/17
- [elpa] externals/eglot bf4a7aa 31/49: Fix #406: mention eglot-stay-out-of in README.md, Stefan Monnier, 2021/03/17
- [elpa] externals/eglot 65aadca 46/49: Fix #620: simplify eglot--apply-workspace-edit, Stefan Monnier, 2021/03/17
- [elpa] externals/eglot 97ed4ca 49/49: Close #643: add new command eglot-shutdown-all, Stefan Monnier, 2021/03/17
- [elpa] externals/eglot f9df418 06/49: Fix #584: Define a face for symbol highlight, Stefan Monnier, 2021/03/17
- [elpa] externals/eglot cb58b72 15/49: Close #603: add fortls for Fotran (f90-mode), Stefan Monnier, 2021/03/17
- [elpa] externals/eglot 147f3b0 16/49: Close #411: offer shortcut commands to commonly invoked code actions, Stefan Monnier, 2021/03/17
- [elpa] externals/eglot 99f8d7b 17/49: Per #604: mention common installation pitfalls in README.md, Stefan Monnier, 2021/03/17
- [elpa] externals/eglot 2879b83 19/49: * README.md: Mention Google Open Source Peer Bonus, Stefan Monnier, 2021/03/17
- [elpa] externals/eglot d5b840b 20/49: Fix #606, #Fix 608: fix bug in eglot-code-actions, Stefan Monnier, 2021/03/17
- [elpa] externals/eglot eac5264 21/49: Fix #609: flush pending changes to server before code actions request,
Stefan Monnier <=
- [elpa] externals/eglot f68f829 26/49: Close #566: prefer typescript-language-server for JS&TS, Stefan Monnier, 2021/03/17
- [elpa] externals/eglot c73f5ed 27/49: Fix #612: remove duplicate entry for "Registration" LSP type, Stefan Monnier, 2021/03/17
- [elpa] externals/eglot 4ae5a44 28/49: Fix #568: update gopls URL in README.md, Stefan Monnier, 2021/03/17
- [elpa] externals/eglot 8d00f8b 32/49: Per #602: speed up glob matching 2x, Stefan Monnier, 2021/03/17
- [elpa] externals/eglot e57be55 36/49: Fix #502: silence messages while formatting markup, Stefan Monnier, 2021/03/17
- [elpa] externals/eglot 398b81e 35/49: Per #602: simplify dir-watching strategy of w/didChangeWatchedFiles, Stefan Monnier, 2021/03/17
- [elpa] externals/eglot a2d1fc9 37/49: Fix #625: handle null reply for textDocument/definition, Stefan Monnier, 2021/03/17
- [elpa] externals/eglot 92b0c5d 41/49: Fix #610: protect against empty URIs on windows, Stefan Monnier, 2021/03/17
- [elpa] externals/eglot ee980cf 39/49: Fixup last commit to fix #627, Stefan Monnier, 2021/03/17
- [elpa] externals/eglot 47f8581 47/49: Per #605: indicate support for activeParameter, Stefan Monnier, 2021/03/17