Skip to content

Enable Metals for Java test gutter debugging - #335

Draft
fwrq41251 wants to merge 1 commit into
zed-extensions:mainfrom
fwrq41251:feat/metals-java-test-gutter
Draft

fwrq41251 wants to merge 1 commit into
zed-extensions:mainfrom
fwrq41251:feat/metals-java-test-gutter

Conversation

@fwrq41251

@fwrq41251 fwrq41251 commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Enable the existing Java test gutter debug scenarios for the Metals adapter. This forwards the same file, class, and method selection already used by the Java adapter.

This requires companion support in the Scala extension: scalameta/metals-zed#106. Selecting Metals without that support cannot launch these test targets.

Validation

  • cargo test debug_locator (11 tests)
  • cargo fmt --all --check
  • cargo build --release --target wasm32-wasip1

An unmodified Metals main-v2 build at 5e1b5c3 discovered a JUnit Jupiter test in an isolated Maven/MBT project; a method-specific DAP session hit its breakpoint and acknowledged disconnect. This was protocol-level validation; end-to-end Zed UI validation remains outstanding.

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