From: Aleksey Kladov Date: Sat, 8 Sep 2018 22:19:29 +0000 (+0100) Subject: Don't send other notifications before initialized X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~430 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5c9fb5c3982f266c55a3ab472b296496389c95f0;p=emacs.git Don't send other notifications before initialized Copyright-paperwork-exempt: yes * eglot.el (eglot--connect): send initialized before activating minor mode. GitHub-reference: close https://github.com/joaotavora/eglot/issues/100 --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 49cfce28ce3..1a702543b96 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/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)