Fix #4894: +lookup/references not following references
This commit is contained in:
parent
72c3a79132
commit
9da4ac05ad
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue