emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/eglot 2ffe16f 2/4: Set spinner in textDocument/didChang


From: João Távora
Subject: [elpa] externals/eglot 2ffe16f 2/4: Set spinner in textDocument/didChange as it matters to RLS
Date: Sun, 27 May 2018 08:20:13 -0400 (EDT)

branch: externals/eglot
commit 2ffe16fece3084fb8b41684667bc585b8b494696
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    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.
---
 eglot.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/eglot.el b/eglot.el
index b95757c..5fab574 100644
--- a/eglot.el
+++ b/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 ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]