Eglot: Improve fix to bug#66144

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.
This commit is contained in:
João Távora 2025-02-16 13:52:28 +00:00
parent 504bdce731
commit e8470b79f1

View file

@ -1259,7 +1259,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)))))