]> git.eshelyaron.com Git - emacs.git/commit
Use completionitem/resolve more abundantly
authorJoão Távora <joaotavora@gmail.com>
Wed, 30 Oct 2019 01:24:10 +0000 (01:24 +0000)
committerJoão Távora <joaotavora@gmail.com>
Wed, 30 Oct 2019 19:08:25 +0000 (19:08 +0000)
commitee794a8d5ec095fabe0ce4b682b665cb97d3301d
tree13ee5cfb1bb04cc54e81607824de8f9a45b6e746
parentc8ea2c269a5452753875482a06f0de59b576dd96
Use  completionitem/resolve more abundantly

It was already used to resolve documentation bits of completions, but
it can also be useful to resolve snippet templates and such.

To resolve a completion, you need some part of a completion to start
with.  If it has a :data field exists and the server supports
:resolveProvider, fetch the new object, otherwise use whatever we had
already.

* eglot.el (eglot-completion-at-point): Add another local
function for resolving completions.

GitHub-reference: per https://github.com/joaotavora/eglot/issues/50
lisp/progmodes/eglot.el