#Vscode does not find all references

1 messages · Page 1 of 1 (latest)

wooden fable
#

Probably not a java question. But if anyone is using vscode/cursor know why if I have a method reference as such:

.reduce(this::myMethod)

And in vscode/cursor I use "go to references" on myMethod it does not find that reference? If I do the same in Intellij find references (same project, same method) it find that as a reference.

mellow brambleBOT
#

<@&987246527741304832> please have a look, thanks.

#

Here is an AI assisted attempt to answer your question 🤖. Maybe it helps! In any case, a human is on the way 👍. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.

#
TJ-Bot
Probably not a java question. But if anyone is using vscode/cursor know why if I have a method reference as such: ``` .reduce(this::myMethod) ``` And in vscode/cursor I use "go to references" on `myMethod` it does not find that reference? If I do the same

It seems like this issue might be related to the way Visual Studio Code handles method references. Make sure that your project is properly configured and all dependencies are resolved.

Another possible solution could be to try installing the Java Extension Pack for Visual Studio Code, which includes additional features and improvements for Java development.

If the issue persists, you can also try restarting Visual Studio Code or clearing its cache to see if that resolves the problem.

Useful links:

wooden fable
#

I have all java extensions setup in my cursor and it corectly finds references when method is called from the object instance, but not with :: usage

jaunty siren
#

(the answer will probably be that vsc with java just isnt smart enough for it)