]> git.eshelyaron.com Git - emacs.git/commitdiff
Eglot: use :immediate t when resolving completions (bug#73279)
authorBrennan Vincent <brennan@umanwizard.com>
Wed, 9 Oct 2024 11:30:30 +0000 (06:30 -0500)
committerEshel Yaron <me@eshelyaron.com>
Mon, 14 Oct 2024 17:37:33 +0000 (19:37 +0200)
Copyright-paperwork-exempt: Yes

* lisp/progmodes/eglot.el (eglot-completion-at-point): Tweak
eglot--request call.

(cherry picked from commit 6a5c2edd84fc3fdb879e4a19ea182c2a4d385833)

lisp/progmodes/eglot.el

index 510753246321cae7b283e6707d0eb0c0de9c088d..239dfd034a7d23fecb0835aeeb6ef5f8ed985272 100644 (file)
@@ -3287,7 +3287,8 @@ for which LSP on-type-formatting should be requested."
                                                         :resolveProvider)
                                  (plist-get lsp-comp :data))
                             (eglot--request server :completionItem/resolve
-                                            lsp-comp :cancel-on-input t)
+                                            lsp-comp :cancel-on-input t
+                                            :immediate t)
                           lsp-comp))))))
       (when (and (consp eglot--capf-session)
                  (= (car bounds) (car (nth 0 eglot--capf-session)))