aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJoão Távora2025-01-14 15:58:57 +0000
committerJoão Távora2025-01-28 11:04:21 +0000
commit7f0ef9655cdc28c3b8055e32c9e84ea57339b139 (patch)
tree87aaaeafc6a6dc5670e186d74aac8b76e431a356 /doc
parent9e4b626f7eea788966a1ad92d4af76f8b0a2573f (diff)
downloademacs-7f0ef9655cdc28c3b8055e32c9e84ea57339b139.tar.gz
emacs-7f0ef9655cdc28c3b8055e32c9e84ea57339b139.zip
Eglot: introduce eglot-advertise-cancellation
Setting this variable to true causes Eglot to send special cancellation notification for certain stale client request. This may help some LSP servers avoid doing costly but ultimately useless work on behalf of the client, improving overall performance. Request cancellation is described in https://microsoft.github.io/language-server-protocol/ specifications/lsp/3.17/specification/#cancelRequest * lisp/jsonrpc.el (jsonrpc-request): Accept function as value for CANCEL-ON-INPUT. * lisp/progmodes/eglot.el (eglot--request): Rework. * doc/misc/eglot.texi (Customizing Eglot): Mention eglot-advertise-cancellation.
Diffstat (limited to 'doc')
-rw-r--r--doc/misc/eglot.texi7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/misc/eglot.texi b/doc/misc/eglot.texi
index df24cf2a1dc..47649455cec 100644
--- a/doc/misc/eglot.texi
+++ b/doc/misc/eglot.texi
@@ -919,6 +919,13 @@ Set this variable to non-nil if you'd like progress notifications coming
919from the language server to be handled by Emacs's progress reporting 919from the language server to be handled by Emacs's progress reporting
920facilities. If the value is the symbol @code{messages} the message 920facilities. If the value is the symbol @code{messages} the message
921buffer is used, else the progress is reported in the mode line. 921buffer is used, else the progress is reported in the mode line.
922
923@cindex request cancellation
924@item eglot-advertise-cancellation
925Setting this variable to true causes Eglot to send special cancellation
926notification for certain stale client request. This may help some LSP
927servers avoid doing costly but ultimately useless work on behalf of the
928client, improving overall performance.
922@end vtable 929@end vtable
923 930
924@node Other Variables 931@node Other Variables