]> git.eshelyaron.com Git - emacs.git/commitdiff
Eglot: Improve fix to bug#66144
authorJoão Távora <joaotavora@gmail.com>
Sun, 16 Feb 2025 13:52:28 +0000 (13:52 +0000)
committerEshel Yaron <me@eshelyaron.com>
Tue, 18 Feb 2025 08:44:13 +0000 (09:44 +0100)
The :exit notification should also take an empty JSON object instead of
JSON null as its parameters.

* lisp/progmodes/eglot.el (eglot-shutdown): Use eglot--{} in
:exit notifcation, too.

(cherry picked from commit e8470b79f1d56c4c887c0b5d2c326ad6449cbbea)

lisp/progmodes/eglot.el

index 99ec5e38a89e89ed6462b0e7940d9d0abc815847..2a64bb926d11a446beb81384f0daf15b046251b4 100644 (file)
@@ -1257,7 +1257,7 @@ SERVER."
       (progn
         (setf (eglot--shutdown-requested server) t)
         (eglot--request server :shutdown eglot--{} :timeout (or timeout 1.5))
-        (jsonrpc-notify server :exit nil))
+        (jsonrpc-notify server :exit eglot--{}))
     ;; Now ask jsonrpc.el to shut down the server.
     (jsonrpc-shutdown server (not preserve-buffers))
     (unless preserve-buffers (kill-buffer (jsonrpc-events-buffer server)))))