]> git.eshelyaron.com Git - emacs.git/commitdiff
Eglot: avoid 'null' as params to 'shutdown' request (bug#66144)
authorJoão Távora <joaotavora@gmail.com>
Tue, 4 Feb 2025 12:02:06 +0000 (12:02 +0000)
committerEshel Yaron <me@eshelyaron.com>
Sun, 9 Feb 2025 08:02:36 +0000 (09:02 +0100)
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--{}.

(cherry picked from commit 164da071e07cf162bfe166908dedc82da44ef634)

lisp/progmodes/eglot.el

index 4dcc0fbe974e4fba0395a39cee6fc7f57f4a1725..f22add70a767b7e2c374bb47feb57beaf83ab4d0 100644 (file)
@@ -1244,7 +1244,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))