(eglot-reconnect current-server interactive)
(when (and current-server
(process-live-p (eglot--process current-server)))
- (eglot-shutdown current-server))
+ (ignore-errors (eglot-shutdown current-server)))
(let ((server (eglot--connect project
managed-major-mode
command
INTERACTIVE is t if called interactively."
(interactive (list (eglot--current-server-or-lose) t))
(when (process-live-p (eglot--process server))
- (eglot-shutdown server interactive))
+ (ignore-errors (eglot-shutdown server interactive)))
(eglot--connect (eglot--project server)
(eglot--major-mode server)
(eglot--contact server)