Skip to content

Java project symbol search does not include JDK and external dependency symbols #278

Description

@Harnocca

Relevance Confirmation

  • I confirmed that this is not an issue with the Eclipse JDT Language Server itself

What happened?

When using Zed's Project Symbol Search in a Java project, symbols from the Java standard library and external dependencies are not included in the search results.

For example, searching for String, System, or Object returns no results. Classes from external libraries imported through Gradle dependencies are also missing.

However, symbols from files inside my own workspace are indexed correctly: features such as Go to Definition work as expected for JDK classes and external dependencies, indicating that JDTLS has access to the required classpath information.

This issue appears to be limited to Project Symbol Search and does not affect symbol resolution or navigation.
In comparison, when I'm in a C Project in Zed, this feature seems to be working fine, showing symbols from stdlib, stdio when searched.

What did you expect to happen?

I expected Project Symbol Search to include symbols from the Java standard library and external dependencies, similar to how it works in C projects or in Neovim with the same JDTLS setup.

For example, searching for String, Object, System, or classes from Gradle dependencies should return their declarations.

Environment

Zed:
Platform:
Java:

Metadata

Metadata

Assignees

No one assigned

    Labels

    language-serverRelated to the language server.

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions