1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-10 21:50:37 -08:00

Eglot: avoid 'null' as params to 'shutdown' request (bug#66144)

Doing so confuses some servers.  It used to be needed for the
gopls server, but according to
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=66144#32
that has been fixed.

Thanks to Javier Olaechea <pirata@gmail.com>

* lisp/progmodes/eglot.el (eglot-shutdown): Use eglot--{}.
This commit is contained in:
João Távora 2025-02-04 12:02:06 +00:00
parent c4a67a4050
commit 164da071e0

View file

@ -1246,7 +1246,7 @@ SERVER."
(unwind-protect
(progn
(setf (eglot--shutdown-requested server) t)
(eglot--request server :shutdown nil :timeout (or timeout 1.5))
(eglot--request server :shutdown eglot--{} :timeout (or timeout 1.5))
(jsonrpc-notify server :exit nil))
;; Now ask jsonrpc.el to shut down the server.
(jsonrpc-shutdown server (not preserve-buffers))