Agents Window: Java LSP (go to definition / Ctrl+click)

Feature request for product/service

– Other –

Describe the request

Hi,

I’m using Cursor on Linux with a Java codebase (Maven/Gradle). I have the Java tooling installed and configured:

Extension Pack for Java (vscjava.vscode-java-pack)
Language Support for Java by Red Hat (redhat.java)
Maven / Gradle extensions as needed
java.jdt.ls.java.home set to JDK 21
Lombok configured via java.jdt.ls.vmargs
In the classic Editor window, everything works as expected:

Ctrl+click → Go to Definition
F12, hover, diagnostics, imports, etc.
In the Agents Window (Agent view), on file tabs in the agent/glass UI, none of this works — Ctrl+click does not navigate to class/method definitions. I also tried F12 and right-click → Go to Definition with the same result.

I have the LSP toggle enabled in the top-right of the Agents Window. I’ve tried:

Restarting Cursor
Restarting / reloading Java extensions
Java: Clean Java Language Server Workspace
The project is opened at the repo root (with pom.xml / build.gradle), and the language server finishes indexing in the Editor window.

This looks similar to the known limitation discussed for TypeScript in the Agents Window (link to thread if you want: Cursor Agents window LSP not working with Typescript) — extension-provided LSP features don’t seem fully integrated in the Agent view yet, even with LSP enabled.

Expected: Same go-to-definition / navigation behavior as in the Editor window.
Actual: No navigation; basic editing works but Java LSP features are unavailable in Agents Window file tabs.

Would be great to have full Java LSP support (at least go to definition and diagnostics) in the Agents Window. Happy to provide logs or repro steps if needed.

Thanks!

Hey there!

Thanks for the feedback. The Agents Window currently supports LSP for a hardcoded list of languages. Java is not on that list today. The languages that work with the LSP toggle right now are TypeScript/JavaScript (the TypeScript issue from the thread you linked has since improved), Python, Go, Rust, CSS, HTML, JSON, PHP, and Prisma.

We’ll continue expanding language support, but don’t have an ETA to share for Java specifically.