Eglot: fix signature's of Eglot's ElDoc functions
These functions are specified to be passed at least one argument, so our implementation must accept an arbitrary number of arguments. * lisp/progmodes/eglot.el (eglot-signature-eldoc-function) (eglot-hover-eldoc-function): Fix signature.
This commit is contained in:
parent
1143cf09a3
commit
aa94e1c56c
1 changed files with 2 additions and 2 deletions
|
@ -3468,7 +3468,7 @@ for which LSP on-type-formatting should be requested."
|
|||
": " fpardoc)))))
|
||||
(buffer-string))))
|
||||
|
||||
(defun eglot-signature-eldoc-function (cb)
|
||||
(defun eglot-signature-eldoc-function (cb &rest _ignored)
|
||||
"A member of `eldoc-documentation-functions', for signatures."
|
||||
(when (eglot-server-capable :signatureHelpProvider)
|
||||
(let ((buf (current-buffer)))
|
||||
|
@ -3492,7 +3492,7 @@ for which LSP on-type-formatting should be requested."
|
|||
:deferred :textDocument/signatureHelp))
|
||||
t))
|
||||
|
||||
(defun eglot-hover-eldoc-function (cb)
|
||||
(defun eglot-hover-eldoc-function (cb &rest _ignored)
|
||||
"A member of `eldoc-documentation-functions', for hover."
|
||||
(when (eglot-server-capable :hoverProvider)
|
||||
(let ((buf (current-buffer)))
|
||||
|
|
Loading…
Add table
Reference in a new issue