Eglot: don't auto-shutdown when reverting of single managed buffer
When eglot-autoshutdown is t and the only reason we're considering it is because of a revert (which tears down Eglot's minor mode as if by killing), detect that situation and purposedly cancel the shutdown. * lisp/progmodes/eglot.el (eglot--managed-mode): Tweak.
This commit is contained in:
parent
e2ff77052d
commit
142fe5ace4
1 changed files with 3 additions and 1 deletions
|
@ -2144,7 +2144,9 @@ Use `eglot-managed-p' to determine if current buffer is managed.")
|
|||
(setf (eglot--managed-buffers server)
|
||||
(delq (current-buffer) (eglot--managed-buffers server)))
|
||||
(when (and eglot-autoshutdown
|
||||
(null (eglot--managed-buffers server)))
|
||||
(null (eglot--managed-buffers server))
|
||||
;; Don't shutdown if up again soon.
|
||||
(not revert-buffer-in-progress-p))
|
||||
(eglot-shutdown server)))))))
|
||||
|
||||
(defun eglot--managed-mode-off ()
|
||||
|
|
Loading…
Add table
Reference in a new issue