-
Notifications
You must be signed in to change notification settings - Fork 30
Description
Relevance Confirmation
- I confirmed that this is not an issue with the Eclipse JDT Language Server itself
What happened?
JDTLS and Zed implement the LSP specifications differently when returning the active parameter of a function. JDTLS returns -1, while Zed expects 0, as the expected value is represented by the u64 type.
More details, along with a proposed solution, can be found here: eclipse-jdtls/eclipse.jdt.ls#2434
This discrepancy causes Zed to fail in parsing and properly handling the message from the language server, resulting in no documentation or hints being displayed for functions with zero parameters on hover.
What did you expect to happen?
I expect that JDTLS will eventually align with the specifications, enabling documentation and hints for functions without parameters. While waiting for JDTLS to implement this change, we could use our own fork by applying the proposed solution found at eclipse-jdtls/eclipse.jdt.ls#2434.
This solution could also be submitted as a pull request to JDTLS. If merged, the workaround could be removed.
Environment
Zed: v0.209.2 (Zed Preview)
OS: macOS 15.7.1
Memory: 16 GiB
Architecture: x86_64