* eglot.el (eglot--lsp-xref-helper): Display message when no
references have been found instead of calling xref-find-references.
GitHub-reference: fix https://github.com/joaotavora/eglot/issues/339
method
:extra-params extra-params
:capability capability)))
- (xref-find-references "LSP identifier at point.")))
+ (if eglot--lsp-xref-refs
+ (xref-find-references "LSP identifier at point.")
+ (eglot--message "%s returned no references" method))))
(defun eglot-find-declaration ()
"Find declaration for SYM, the identifier at point."