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

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

[elpa] 1.2 bfadd9a 053/101: Close #100: Don't send other notifications b


From: Christian Johansson
Subject: [elpa] 1.2 bfadd9a 053/101: Close #100: Don't send other notifications before initialized
Date: Thu, 29 Apr 2021 15:08:59 -0400 (EDT)

tag: 1.2
commit bfadd9aa522ec582665b6bd42b03001ca444a9e8
Author: Aleksey Kladov <aleksey.kladov@gmail.com>
Commit: João Távora <joaotavora@gmail.com>

    Close #100: Don't send other notifications before initialized
    
    Copyright-paperwork-exempt: yes
    
    * eglot.el (eglot--connect): send initialized before
    activating minor mode.
---
 eglot.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eglot.el b/eglot.el
index 49cfce2..1a70254 100644
--- a/eglot.el
+++ b/eglot.el
@@ -559,10 +559,10 @@ This docstring appeases checkdoc, that's all."
                           (push server
                                 (gethash project eglot--servers-by-project))
                           (setf (eglot--capabilities server) capabilities)
+                          (jsonrpc-notify server :initialized `(:__dummy__ t))
                           (dolist (buffer (buffer-list))
                             (with-current-buffer buffer
                               (eglot--maybe-activate-editing-mode server)))
-                          (jsonrpc-notify server :initialized `(:__dummy__ t))
                           (setf (eglot--inhibit-autoreconnect server)
                                 (cond
                                  ((booleanp eglot-autoreconnect)



reply via email to

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