]> git.eshelyaron.com Git - emacs.git/commitdiff
Inhibit auto-reconnect until connection is established
authorJoão Távora <joaotavora@gmail.com>
Sun, 1 Jul 2018 21:49:40 +0000 (22:49 +0100)
committerJoão Távora <joaotavora@gmail.com>
Sun, 1 Jul 2018 21:49:40 +0000 (22:49 +0100)
Otherwise, a server that crashes on startup is enough to throw Eglot
into a reconnection infloop.

* eglot.el (eglot-lsp-server): Initialize "inhibit-autoreconnect"
slot to t.

GitHub-reference: close https://github.com/joaotavora/eglot/issues/36

lisp/progmodes/eglot.el

index 50733f74581aed84ab74b7bf1b1171209001f169..8cad3ad1b58b2d1e8f4e34fe712bd27f7fa05599 100644 (file)
@@ -206,6 +206,7 @@ lasted more than that many seconds."
     :documentation "List (ID DOING-WHAT DONE-P) representing server progress."
     :initform `(nil nil t) :accessor eglot--spinner)
    (inhibit-autoreconnect
+    :initform t
     :documentation "Generalized boolean inhibiting auto-reconnection if true."
     :accessor eglot--inhibit-autoreconnect)
    (file-watches