From 5c9fb5c3982f266c55a3ab472b296496389c95f0 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 8 Sep 2018 23:19:29 +0100 Subject: [PATCH] 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 --- lisp/progmodes/eglot.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2