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
-
I am mainly curious about why
eglot-completion-at-point
is 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 oflabel
values (eglot/eglot.el
Line 2329 in c17bdf6
label
values 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, thislabel
gets inserted into the buffer. After that, the:exit-function
(defined ateglot/eglot.el
Line 2417 in c17bdf6
Before sending the
completionItem/resolve
request to the LSP server, we have already inserted the:label
text. We are eventually going to insert the expanded snippet that's present intextEdit
.Can we use something other than the
:label
value 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