Skip to content

Add decompile module#221

Open
tartarughina wants to merge 3 commits intozed-extensions:mainfrom
tartarughina:virtual-files
Open

Add decompile module#221
tartarughina wants to merge 3 commits intozed-extensions:mainfrom
tartarughina:virtual-files

Conversation

@tartarughina
Copy link
Copy Markdown
Collaborator

Implement a workaround to get decompiled files working within Zed.
The proxy intercepts definitions requests being returned from JDTLS with a URI starting with jdt:// and creates a temp java file which Zed is then able to read and further decompilation can happen.

To work, JDTLS needs to receive additional client capabilities within the initialization options. If the user has not set such the extension will enable those by default.

Cache decompiled Java class files and rewrite jdt://
URIs in definition/typeDefinition/implementation responses
to point to local file URIs instead.
Remove the unused `lsp_info!` macro import from decompile.rs and
clean up verbose logging throughout the decompile and proxy code.
Replace generic log messages with more specific ones where useful.

Improve cache_path parsing to handle URL-encoded class names in
jdt:// URIs more robustly.

Set extendedClientCapabilities defaults in Java language server
initialization options.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant