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

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

[elpa] externals/eglot 6f1d64c 59/62: Close #100: Don't send other notif


From: Stefan Monnier
Subject: [elpa] externals/eglot 6f1d64c 59/62: Close #100: Don't send other notifications before initialized
Date: Sat, 29 Sep 2018 17:13:38 -0400 (EDT)

branch: externals/eglot
commit 6f1d64c21aa6b7031b28c8e84f49407d4abca5e8
Author: Aleksey Kladov <address@hidden>
Commit: João Távora <address@hidden>

    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]