[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master c833b291f5: Ignore errors when shutting down all LSP servers (bug
From: |
João Távora |
Subject: |
master c833b291f5: Ignore errors when shutting down all LSP servers (bug#59146) |
Date: |
Thu, 10 Nov 2022 12:18:05 -0500 (EST) |
branch: master
commit c833b291f57e61613cbf09cffae478aa02e6ecc5
Author: Evgeni Kolev <evgenysw@gmail.com>
Commit: João Távora <joaotavora@gmail.com>
Ignore errors when shutting down all LSP servers (bug#59146)
eglot-shutdown-all has a bug that results in partially stopping
servers: when a server shutdown timeouts (1.5s), an error is
propagated and eglot-shutdown-all does not try to shutdown the rest of
the servers.
* eglot.el (eglot-shutdown-all): Ignore errors when shutting down
servers, converting errors to messages.
---
lisp/progmodes/eglot.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index f69d392b46..7fa4bd380c 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -877,7 +877,8 @@ SERVER."
PRESERVE-BUFFERS as in `eglot-shutdown', which see."
(interactive (list current-prefix-arg))
(cl-loop for ss being the hash-values of eglot--servers-by-project
- do (cl-loop for s in ss do (eglot-shutdown s nil nil
preserve-buffers))))
+ do (with-demoted-errors "[eglot] shutdown all: %s"
+ (cl-loop for s in ss do (eglot-shutdown s nil nil
preserve-buffers)))))
(defun eglot--on-shutdown (server)
"Called by jsonrpc.el when SERVER is already dead."
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master c833b291f5: Ignore errors when shutting down all LSP servers (bug#59146),
João Távora <=