Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code CTRL+Click with Java stops working after a while

For some reason after having a Java project open for more than 20 minutes, maybe a little more, the CTRL+Click shortcut to inspect classes/methods stops working. When clicking it only appears a loading indicator on the tabs section that keeps going forever without actually loading anything.

enter image description here

Another problem is that when hovering on a method it will stay on "Loading..." forever.

enter image description here

Strangely enough IntelliSense keeps working, so it will still give suggestions while writing.

I am using "Extension Pack for Java" latest version and latest version of VSCode. I am also using JavaSE-11.

Edit: maybe it's worth pointing out that I'm encountering this problem on a Spring Boot project.

like image 683
shin Avatar asked Oct 16 '25 21:10

shin


2 Answers

VSCode "go to definition" not working I had a the same issue: F12 and Ctrl + Click and Right Click "Go To Definition" wasn't working. The fix for me was:

Go to Extensions Click "Disable All Installed Extensions" Close and Reopen VS Code Back to Extensions and "Enable All Extensions" Essentially enable/disable all extensions fixed the issue.

like image 59
Kritarth Sharma Avatar answered Oct 18 '25 12:10

Kritarth Sharma


Have you installed the extension Lombok Annotations Support for VS Code? It can modify your "java.jdt.ls.vmargs" in the settings.json. Although you have uninstalled it, this configuration will not be removed.

Please check whether you have modified "java.jdt.ls.vmargs" in the settings.json.

If it still does not work please disable all the extensions and only enable the Java-related extensions, and clear the settings.json then to reopen the VSCode.

like image 37
Steven-MSFT Avatar answered Oct 18 '25 10:10

Steven-MSFT



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!