tag: 1.2
commit bfadd9aa522ec582665b6bd42b03001ca444a9e8
Author: Aleksey Kladov <[email protected]>
Commit: João Távora <[email protected]>
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)