]> git.eshelyaron.com Git - emacs.git/commit
Support activeparameter property for signatureinformation
authorBrian Leung <bkleung89@gmail.com>
Mon, 1 Feb 2021 01:28:49 +0000 (17:28 -0800)
committerJoão Távora <joaotavora@gmail.com>
Mon, 1 Feb 2021 10:29:35 +0000 (10:29 +0000)
commitbdf57d5d4e888a6a7b4066b87497da8a8d9e36de
tree97feb50385dd1083e41f14d2c835808cc52f3189
parent89fccba0088f765ba6a4d02b7ca4bf53633b43be
Support activeparameter property for signatureinformation

SignatureInformation.activeParameter is new in version 3.16.0 of the
protocol.  When non-nil, it is used in place of
SignatureHelp.activeParameter.  The latter was deemed insufficient in
languages where multiple signatures for the same function may exist
with arbitrary order of parameters, like Python.

Co-authored-by: João Távora <joaotavora@gmail.com>
* eglot.el (eglot--lsp-interface-alist): Add
SignatureInformation.activeParameter.

* eglot.el (eglot--sig-info): Prioritize
SignatureInformation.activeParameter over
SignatureHelp.activeParameter.

GitHub-reference: close https://github.com/joaotavora/eglot/issues/605
lisp/progmodes/eglot.el