]> git.eshelyaron.com Git - emacs.git/commit
Ensure exit-function of eglot-c-at-point runs on exact match
authorrbrtb <104695105+rbrtb@users.noreply.github.com>
Tue, 3 May 2022 09:53:17 +0000 (09:53 +0000)
committerGitHub <noreply@github.com>
Tue, 3 May 2022 09:53:17 +0000 (10:53 +0100)
commit4beab004d98f17f830600b4597315f030a7313c3
tree2fed942f9210c3154ecffabf12aa22a6aeee35c7
parentf5503420594e0e80a1552edacc8b85b7e29f4223
Ensure exit-function of eglot-c-at-point runs on exact match

When the completion is exact match, exit-function should still run.

Say one is using auto-imports feature of pyright.  One types foo, and
triggers the completion.  There are two candidates: foo and foo_bar.  If
one chooses foo, the status would be 'exact' instead of 'finished', thus
exit-function is not executed, foo is not auto-imported.

* eglot.el (eglot-completion-at-point): Consider 'exact status.

Copyright-paperwork-exempt: Yes
GitHub-reference: fix https://github.com/joaotavora/eglot/issues/941
lisp/progmodes/eglot.el