Skip to content

Commit

Permalink
Don't send notifications prior to initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
matklad committed Sep 8, 2018
1 parent f3f8531 commit d0c3b3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d0c3b3d

Please sign in to comment.