]> git.eshelyaron.com Git - emacs.git/commitdiff
Eglot: Advertise completion.resolveSupport capabilities
authorMarcin Pajkowski <marcin.pajkowski@gmail.com>
Sun, 20 Nov 2022 19:03:57 +0000 (20:03 +0100)
committerEli Zaretskii <eliz@gnu.org>
Thu, 24 Nov 2022 14:16:09 +0000 (16:16 +0200)
Some servers avoid reporting completion items that
require "additionalTextEdits" capability.  Actually,
'eglot-completion-at-point' function supports such
feature so it can be advertised to LSP server.
* lisp/progmodes/eglot.el (eglot-client-capabilities): Advertise
resolveSupport.  (bug#59465)

Copyright-paperwork-exempt: yes

lisp/progmodes/eglot.el

index e057b12e0ee36705381e559483dff52ad107c4c1..94f718c865d54d3193933d1b91fe50e4dc8b9f50 100644 (file)
@@ -737,6 +737,10 @@ treated as in `eglot--dbind'."
                                            t
                                          :json-false)
                                       :deprecatedSupport t
+                                      :resolveSupport (:properties
+                                                       ["documentation"
+                                                        "details"
+                                                        "additionalTextEdits"])
                                       :tagSupport (:valueSet [1]))
                                     :contextSupport t)
              :hover              (list :dynamicRegistration :json-false