Skip to content

Commit

Permalink
Adjust lsp-java to native json
Browse files Browse the repository at this point in the history
  • Loading branch information
yyoncho committed May 5, 2019
1 parent 790c5f8 commit 527e7b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lsp-java.el
Original file line number Diff line number Diff line change
Expand Up @@ -413,13 +413,13 @@ FULL specify whether full or incremental build will be performed."

(cl-defmethod lsp-execute-command
(_server (command (eql java.show.references)) params)
(if-let (refs (cl-third params))
(if-let (refs (seq-elt params 2))
(xref--show-xrefs (lsp--locations-to-xref-items refs) nil)
(user-error "No references")))

(cl-defmethod lsp-execute-command
(_server (command (eql java.show.implementations)) params)
(if-let (refs (cl-third params))
(if-let (refs (seq-elt params 2))
(xref--show-xrefs (lsp--locations-to-xref-items refs) nil)
(user-error "No implementations")))

Expand Down

0 comments on commit 527e7b7

Please sign in to comment.