vscode-java icon indicating copy to clipboard operation
vscode-java copied to clipboard

go to references , so slow

Open xiangpingjiang opened this issue 1 year ago • 6 comments

[provide a description of the issue]

Environment
  • Operating System: Debian GNU/Linux 12 (bookworm)
  • JDK version: 1.8.0_402
  • Visual Studio Code version: 1.93.1 (Universal)
  • Java extension version: v0.29.0
Steps To Reproduce
  1. [step 1]
  2. [step 2]

[Please attach a sample project reproducing the error] Please attach logs

Current Result

https://github.com/user-attachments/assets/c1a55568-8115-4d14-9593-bce3c7f15a44

Expected Result
Additional Informations

xiangpingjiang avatar Sep 28 '24 00:09 xiangpingjiang

Are you able to share the project ? It's seems pretty fast on much larger number of references for me, so maybe it is something to do with the classpath.

Does setting "java.references.CodeLens": true in your settings have any effect ? This would set the number references as a code lens on each member.

rgrunber avatar Oct 02 '24 17:10 rgrunber

image

hello, @rgrunber It seems that vscode not recognize "java.references.CodeLens": true

xiangpingjiang avatar Oct 11 '24 12:10 xiangpingjiang

My mistake. Should have said java.referencesCodeLens.enabled to true.

rgrunber avatar Oct 11 '24 12:10 rgrunber

It works for me . Now It's fast, thank you very much

xiangpingjiang avatar Oct 11 '24 15:10 xiangpingjiang

@xiangpingjiang , hold on. Did "Go to references" become fast, or did you just start using the code lens references on the method declarations ?

rgrunber avatar Oct 11 '24 16:10 rgrunber

@rgrunber "Go to references" didn't become fast, I just start using the code lens references on the method declarations

xiangpingjiang avatar Oct 12 '24 02:10 xiangpingjiang

The same problem, for simple method names (such as create, update and other commonly used method names), using go to reference or left mouse button + cmd is very slow, while finding the reference through code lens is very fast

Skyxim avatar Dec 03 '24 09:12 Skyxim