branch: externals/eglot
commit 51ff863284138721d4c66ae2232df0696d097f44
Author: João Távora <[email protected]>
Commit: João Távora <[email protected]>
Must re-announce didOpen after reconnect
* eglot.el (eglot-reconnect): Also call
eglot--maybe-activate-editing-mode for all buffers.
---
eglot.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/eglot.el b/eglot.el
index 3561da2..86c0a4c 100644
--- a/eglot.el
+++ b/eglot.el
@@ -205,8 +205,11 @@ INTERACTIVE is t if called interactively."
(eglot--major-mode process)
(eglot--short-name process)
(eglot--bootstrap-fn process)
- (lambda (_proc)
- (eglot--message "Reconnected!"))))
+ (lambda (proc)
+ (eglot--message "Reconnected!")
+ (dolist (buffer (buffer-list))
+ (with-current-buffer buffer
+ (eglot--maybe-activate-editing-mode proc))))))
(defvar eglot--command-history nil
"History of COMMAND arguments to `eglot'.")