[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Eglot: auto-import completion item

From: Marcin Pajkowski
Subject: Re: [PATCH] Eglot: auto-import completion item
Date: Tue, 22 Nov 2022 21:26:54 +0100

Hi João,

Thanks for reviewing my patch!

I added bug reference, fixed typo and sent copy of this patch to the bug tracker.


pon., 21 lis 2022 o 14:55 João Távora <joaotavora@gmail.com> napisał(a):
Marcin Pajkowski <marcin.pajkowski@gmail.com> writes:

Hi Marcin,

the patch looks good to install, but please send it to the bug tracker
where the discussion started instead: I don't have the bug # handy.
Minor comments below my sig.


> Subject: [PATCH] Eglot: Advertise completion.resolveSupport capabilities
> Some servers avoid reporting completion items that require
> "additionalTextEdits" capability. Actually eglot-completion-at-point
> function supports such feature so it can be adverised to LSP server.

Also missing a line bug#xxxxx here.

> * lisp/progmodes/eglot.el (eglot-client-capabilities)

Here's, you're supposed to add a ':' and then briefly state what you did
to the definition.

Like this:

* lisp/progmodes/eglot.el
  (eglot-client-capabilities): Advertise :resolveSupport.

> ---
>  lisp/progmodes/eglot.el | 1 +
>  1 file changed, 1 insertion(+)
> diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
> index 9555d21b00..4193ee0106 100644
> --- a/lisp/progmodes/eglot.el
> +++ b/lisp/progmodes/eglot.el
> @@ -737,6 +737,7 @@ eglot-client-capabilities
>                                             t
>                                           :json-false)
>                                        :deprecatedSupport t
> +                                      :resolveSupport (:properties ["documentation" "details" "additionalTextEdits"])

Can you break this line so that it fits in under 80 columns?

>                                        :tagSupport (:valueSet [1]))
>                                      :contextSupport t)
>               :hover              (list :dynamicRegistration :json-false

Attachment: Eglot-Advertise-completion.resolveSupport-capabilities.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]