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:
parent
504bdce731
commit
e8470b79f1
1 changed files with 1 additions and 1 deletions
|
@ -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)))))
|
||||
|
|
Loading…
Add table
Reference in a new issue