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.
GitHub-reference: fix https://github.com/joaotavora/eglot/issues/609
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'