From 92593bb4c13a80303866cdb6992adb2012e2b279 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Sun, 27 May 2018 11:58:41 +0100 Subject: [PATCH] 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. --- lisp/progmodes/eglot.el | 1 + 1 file changed, 1 insertion(+) 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 () -- 2.39.2