I'm trying to find a way to navigate to implementations of an method defined in an interface. When I command click, it only takes me to the declaration of the method.
The user is navigated to the method declaration in the interface.
The user is navigated to the method implementation if there is only 1, or is presented with a list of implementations to choose from. After choosing an implementation, the user is navigated to that implementation.
Closest thing we have right now is the find all references (Click on references link or Shift+F12).
There's an enhancement request for the Java Language Server to provide Interface implementors, see https://github.com/eclipse/eclipse.jdt.ls/issues/99.
But I reckon ctrl+click on a method to jump to implementors would be a nice feature to have
Thanks for including the link to that request @fbricon.
@bkbonner you can test implementor code lenses with the latest CI build: download the most recent java-<version>.vsix file and install it by following the instructions here.
You need to set java.implementationsCodeLens.enabled to true in vscode settings.
Most helpful comment
@bkbonner you can test implementor code lenses with the latest CI build: download the most recent
java-<version>.vsixfile and install it by following the instructions here.You need to set
java.implementationsCodeLens.enabledtotruein vscode settings.