Skip to content

Commit 305eb56

Browse files
committed
Convert the references to list before showing them
1 parent 4da9b2d commit 305eb56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lsp-java.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -961,13 +961,13 @@ PROJECT-URI uri of the item."
961961

962962
(cl-defmethod lsp-execute-command
963963
(_server (command (eql java.show.references)) params)
964-
(if-let (refs (cl-third params))
964+
(if-let (refs (cl-third (append params nil)))
965965
(xref--show-xrefs (lsp--locations-to-xref-items refs) nil)
966966
(user-error "No references")))
967967

968968
(cl-defmethod lsp-execute-command
969969
(_server (command (eql java.show.implementations)) params)
970-
(if-let (refs (cl-third params))
970+
(if-let (refs (cl-third (append params nil)))
971971
(xref--show-xrefs (lsp--locations-to-xref-items refs) nil)
972972
(user-error "No implementations")))
973973

0 commit comments

Comments
 (0)