Skip to content

fix: report definition request errors correctly - #1485

Merged
angelozerr merged 1 commit into
redhat-developer:mainfrom
bodiam:fix-definition-request-error-label
May 9, 2026
Merged

angelozerr merged 1 commit into
redhat-developer:mainfrom
bodiam:fix-definition-request-error-label

Conversation

@bodiam

@bodiam bodiam commented May 9, 2026 •

Copy link
Copy Markdown
Contributor

What

Use the textDocument/definition request constant when handling definition request failures.

Why

LSPDefinitionSupport calls TextDocumentService.definition(...), but passed the textDocument/declaration label to CancellationSupport. As a result, definition failures were logged or reported as declaration failures.

Verification

  • ./gradlew compileJava

@angelozerr angelozerr added the bug Something isn't working label May 9, 2026
@angelozerr angelozerr added this to the 0.20.0 milestone May 9, 2026
@angelozerr angelozerr moved this to In Progress in Java Tooling May 9, 2026
@angelozerr

Copy link
Copy Markdown
Contributor

Good catch! Thanks for your contribution.

@angelozerr
angelozerr merged commit 96e5079 into redhat-developer:main May 9, 2026
9 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Java Tooling May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants