Fix eglot-specific commands

* lisp/progmodes/eglot.el (eglot-find-declaration)
(eglot-find-implementation, eglot-find-typeDefinition):
Fix the last argument in xref-find-all-definitions calls.
This commit is contained in:
Dmitry Gutov 2023-11-27 17:17:13 +02:00
parent 93ee5cd076
commit a5487e92e9

View file

@ -2957,17 +2957,17 @@ If BUFFER, switch to it before."
(defun eglot-find-declaration ()
"Find declaration for SYM, the identifier at point."
(interactive)
(xref-find-all-definitions "LSP identifier at point" 'eglot--xref-declaration))
(xref-find-all-definitions "LSP identifier at point" "declaration"))
(defun eglot-find-implementation ()
"Find implementation for SYM, the identifier at point."
(interactive)
(xref-find-all-definitions "LSP identifier at point" 'eglot--xref-implementation))
(xref-find-all-definitions "LSP identifier at point" "implementation"))
(defun eglot-find-typeDefinition ()
"Find type definition for SYM, the identifier at point."
(interactive)
(xref-find-all-definitions "LSP identifier at point" 'eglot--xref-type-definition))
(xref-find-all-definitions "LSP identifier at point" "type-definition"))
(cl-defmethod xref-backend-definitions ((_backend (eql eglot)) identifier)
(let ((probe (eglot--recover-workspace-symbol-meta identifier)))