mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix #4894: +lookup/references not following references
This commit is contained in:
@ -57,7 +57,7 @@
|
|||||||
(when-let (loc (lsp-request "textDocument/definition"
|
(when-let (loc (lsp-request "textDocument/definition"
|
||||||
(lsp--text-document-position-params)))
|
(lsp--text-document-position-params)))
|
||||||
(lsp-show-xrefs (lsp--locations-to-xref-items loc) nil nil)
|
(lsp-show-xrefs (lsp--locations-to-xref-items loc) nil nil)
|
||||||
t))
|
'deferred))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +lsp-lookup-references-handler (&optional include-declaration)
|
(defun +lsp-lookup-references-handler (&optional include-declaration)
|
||||||
@ -70,4 +70,4 @@
|
|||||||
:context `(:includeDeclaration
|
:context `(:includeDeclaration
|
||||||
,(lsp-json-bool include-declaration))))))
|
,(lsp-json-bool include-declaration))))))
|
||||||
(lsp-show-xrefs (lsp--locations-to-xref-items loc) nil t)
|
(lsp-show-xrefs (lsp--locations-to-xref-items loc) nil t)
|
||||||
t))
|
'deferred))
|
||||||
|
Reference in New Issue
Block a user