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