]> git.eshelyaron.com Git - emacs.git/commitdiff
Set spinner in textdocument/didchange as it matters to rls
authorJoão Távora <joaotavora@gmail.com>
Sun, 27 May 2018 10:58:41 +0000 (11:58 +0100)
committerJoão Távora <joaotavora@gmail.com>
Sun, 27 May 2018 10:58:41 +0000 (11:58 +0100)
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.

lisp/progmodes/eglot.el

index b95757ccefdf32bd40bab6ed287ef1b60ba1f169..5fab5749c583b7228bfc19b7ec177427291322b0 100644 (file)
@@ -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 ()