Skip to content

Add 'Go to Definition' Support for JDK and External Dependency. #23

Closed as not planned

Description

@marques-gabriel

Hello,

I am currently testing the Zed editor with Java Projects using Maven. While the "Go to Definition" functionality works well for classes defined within my project, it does not work for classes from the JDK (e.g., System) or from external dependencies.

Steps to Reproduce:

  1. Open a Java project in Zed with the JDTLS enabled.
  2. Try to use "Go to Definition" on a JDK class (e.g., System) or a class/JAR from an external dependency.

Expected Behavior:
The editor should navigate to the definition of the class, whether it is part of the JDK or an external dependency.

Actual Behavior:
The editor does not navigate to the definition of JDK classes or classes/JAR from external dependencies.

It would be greatly appreciated if this functionality could be added to improve the development experience, for efficient navigation and understanding of the code, especially when working with complex projects that rely heavily on external libraries.

Thank you for your attention to this matter.

Activity

  1. valentinegb commented on Nov 23, 2024

    @valentinegb
    Collaborator

    Unfortunately, this is not currently possible in Zed. Eclipse JDT Language Server, the language server that this Zed extension uses, implements various features while taking advantage of LSP1 extensions, which are additions to standard LSP, and this is one of those features. Zed extensions do not implement LSP themselves, Zed itself does that, and Zed itself only implements (as far as I'm aware) standard LSP.

    So, in its current form and with Zed's current capabilities, this is unfortunately not possible, although I do hope that it is possible eventually. I talked more about this in #20.

    Footnotes

    1. Language Server Protocol ↩

  2. valentinegb commented on Nov 24, 2024

    @valentinegb
    Collaborator

    I opened an issue related to this for Zed, you should watch it: zed-industries/zed#21133

  3. thrasos-dev commented on Oct 7, 2025

    @thrasos-dev

    This is the only missing feature preventing me from moving to Zed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    language-serverRelated to the language server.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions