Skip to content

Use JDTUtils.toUri() for decompiled class file URIs#624

Merged
chagong merged 1 commit intomainfrom
copilot/grim-crawdad
Mar 30, 2026
Merged

Use JDTUtils.toUri() for decompiled class file URIs#624
chagong merged 1 commit intomainfrom
copilot/grim-crawdad

Conversation

@wenytang-ms
Copy link
Copy Markdown
Contributor

Replace manual jdt:// URI construction in getFileURI(IClassFile) with JDTUtils.toUri(classFile) to align with eclipse.jdt.ls PR #3666.

This ensures the debugger generates the same URI format as the language server, fixing the issue where classes with source code are opened twice (once as .java, once as .class) during debugging.

Fixes #623
Related: eclipse-jdtls/eclipse.jdt.ls#3729

Replace manual jdt:// URI construction in getFileURI(IClassFile) with
JDTUtils.toUri(classFile) to align with eclipse.jdt.ls PR #3666.

This ensures the debugger generates the same URI format as the language
server, fixing the issue where classes with source code are opened twice
(once as .java, once as .class) during debugging.

Fixes #623
Related: eclipse-jdtls/eclipse.jdt.ls#3729

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@chagong chagong merged commit 07b1e4c into main Mar 30, 2026
4 checks passed
@chagong chagong deleted the copilot/grim-crawdad branch March 30, 2026 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Debugger should use proper decompiled classes URIs

2 participants