From: João Távora Date: Sun, 27 May 2018 10:58:41 +0000 (+0100) Subject: Set spinner in textdocument/didchange as it matters to rls X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~534 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=92593bb4c13a80303866cdb6992adb2012e2b279;p=emacs.git Set spinner in textdocument/didchange as it matters to rls Otherwise, the asynch eldoc action will immediately send the textDocument/documentHighlight requests, without understanding that they need to be deferred a bit more. * eglot.el (eglot--signal-textDocument/didChange): Set the spinner here. --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index b95757ccefd..5fab5749c58 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -1177,6 +1177,7 @@ Records START, END and PRE-CHANGE-LENGTH locally." :rangeLength len :text after-text)]))))) (setq eglot--recent-changes (cons [] [])) + (setf (eglot--spinner server) (list nil :textDocument/didChange t)) (eglot--call-deferred server)))) (defun eglot--signal-textDocument/didOpen ()