From 1a58481719f63c3e77832f7c8474ce745a05ad4c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Sun, 1 Jul 2018 22:49:40 +0100 Subject: [PATCH] Inhibit auto-reconnect until connection is established 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 50733f74581..8cad3ad1b58 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -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 -- 2.39.2