Variable: eglot-autoreconnect
eglot-autoreconnect is a customizable variable defined in eglot.el.gz.
Value
3
Documentation
Control ability to reconnect automatically to the LSP server.
If t, always reconnect automatically (not recommended). If nil, never reconnect automatically after unexpected server shutdowns, crashes or network failures. A positive integer number says to only autoreconnect if the previous successful connection attempt lasted more than that many seconds.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/eglot.el.gz
(defcustom eglot-autoreconnect 3
"Control ability to reconnect automatically to the LSP server.
If t, always reconnect automatically (not recommended). If nil,
never reconnect automatically after unexpected server shutdowns,
crashes or network failures. A positive integer number says to
only autoreconnect if the previous successful connection attempt
lasted more than that many seconds."
:type '(choice (const :tag "Reconnect automatically" t)
(const :tag "Never reconnect" nil)
(integer :tag "Number of seconds")))