]> git.eshelyaron.com Git - emacs.git/commit
Disable workDoneProgress if defcustom is nil
authorTheodor Thornhill <theo@thornhill.no>
Sat, 30 Mar 2024 08:35:16 +0000 (09:35 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sun, 31 Mar 2024 18:05:07 +0000 (20:05 +0200)
commit959acfc49fd21c90c1ef23bc353c5a8fe5137ee1
treebb21b2478d08c0c71dffe52f096437a66043b6f6
parentf61944039edf7d73b0f3dd40bc56c1af4ac0a1bf
Disable workDoneProgress if defcustom is nil

There is no need to receive the $/progress notifications from the server
if we don't want to render them. Because they are effectively ignored
when eglot-report-progress is nil we'd rather not waste cycles on serde
of the messages.

* lisp/progmodes/eglot.el (eglot-client-capabilities): use value from
defcustom to decide whether or not to advertise to server.

(cherry picked from commit a33e7c0286c2a9c8af1c96db42f5c0c37611c9db)
lisp/progmodes/eglot.el