eglot-completion-at-point function defintion
#746
Unanswered
narendraj9
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am mainly curious about why
eglot-completion-at-pointis implemented the way it is.Copied from (#744 (reply in thread)):
In the definition of
eglot-completion-at-point, the completion table has the list oflabelvalues (eglot/eglot.el
Line 2329 in c17bdf6
labelvalues returned from the server are usually things that are annotated (e.g. the name of the method with the type signatgure of a method). Once a completion candidate is selected, thislabelgets inserted into the buffer. After that, the:exit-function(defined ateglot/eglot.el
Line 2417 in c17bdf6
Before sending the
completionItem/resolverequest to the LSP server, we have already inserted the:labeltext. We are eventually going to insert the expanded snippet that's present intextEdit.Can we use something other than the
:labelvalue as the initial text that is inserted? Is it possible to not insert anything at all and wait for things to settle down until we have a fully expanded completion string?Beta Was this translation helpful? Give feedback.
All reactions