]> git.eshelyaron.com Git - emacs.git/commit
Eglot: implement additionalPropertiesSupport for showMessage
authorFelician Nemeth <felician.nemeth@gmail.com>
Sun, 2 Mar 2025 22:06:38 +0000 (22:06 +0000)
committerEshel Yaron <me@eshelyaron.com>
Tue, 4 Mar 2025 21:03:25 +0000 (22:03 +0100)
commit57034317ef00b26dfd6875a9f8789f40dd4ee35a
tree4661ea43fce46ad5f643b07ede35c36cc6441d36
parent6f071752f90566de6e881fa8962a7b94d4736883
Eglot: implement additionalPropertiesSupport for showMessage

This feature was introduced in LSP v3.16.

https://microsoft.github.io/language-server-protocol/specifications/lsp/3.18/specification/#window_showMessageRequest

* lisp/progmodes/eglot.el (eglot-client-capabilities): Set
window/showMessage/messageActionItem/additionalPropertiesSupport to t.
(eglot-handle-request window/showMessageRequest): Return the whole
selected MessageActionItem, not just its title.

Co-authored-by: João Távora <joaotavora@gmail.com>
(cherry picked from commit 18c81b76bc4c0fcd3effac3114763bae887a9d67)
lisp/progmodes/eglot.el