File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -411,6 +411,18 @@ FULL specify whether full or incremental build will be performed."
411411 (unless (file-directory-p path)
412412 (make-directory path t )))
413413
414+ (cl-defmethod lsp-execute-command
415+ (_server (command (eql java.show.references)) params)
416+ (if-let (refs (cl-third params))
417+ (xref--show-xrefs (lsp--locations-to-xref-items refs) nil )
418+ (user-error " No references" )))
419+
420+ (cl-defmethod lsp-execute-command
421+ (_server (command (eql java.show.implementations)) params)
422+ (if-let (refs (cl-third params))
423+ (xref--show-xrefs (lsp--locations-to-xref-items refs) nil )
424+ (user-error " No implementations" )))
425+
414426(defun lsp-java--get-java-version ()
415427 " Retrieve the java version from shell command."
416428 (let* ((java-version-output (shell-command-to-string (concat lsp-java-java-path " -version" )))
You can’t perform that action at this time.
0 commit comments