Skip to content

zed_extension_api: Fork new version of extension API#44025

Merged
maxdeviant merged 3 commits intomainfrom
push-mvuskwqpkyxu
Dec 2, 2025
Merged

zed_extension_api: Fork new version of extension API#44025
maxdeviant merged 3 commits intomainfrom
push-mvuskwqpkyxu

Conversation

@maxdeviant
Copy link
Member

@maxdeviant maxdeviant commented Dec 2, 2025

This PR forks a new version of the zed_extension_api in preparation for new changes.

We're jumping from v0.6.0 to v0.8.0 for the WIT because we released v0.7.0 of the zed_extension_api without any WIT changes (it probably should have been v0.6.1, instead).

Release Notes:

  • N/A

@maxdeviant maxdeviant self-assigned this Dec 2, 2025
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 2, 2025
@maxdeviant maxdeviant enabled auto-merge (squash) December 2, 2025 22:17
@maxdeviant maxdeviant disabled auto-merge December 2, 2025 22:19
@maxdeviant maxdeviant enabled auto-merge (squash) December 2, 2025 22:21
@maxdeviant maxdeviant merged commit a2d57fc into main Dec 2, 2025
24 of 25 checks passed
@maxdeviant maxdeviant deleted the push-mvuskwqpkyxu branch December 2, 2025 22:26
CherryWorm pushed a commit to CherryWorm/zed that referenced this pull request Dec 16, 2025
…44025)

This PR forks a new version of the `zed_extension_api` in preparation
for new changes.

We're jumping from v0.6.0 to v0.8.0 for the WIT because we released
v0.7.0 of the `zed_extension_api` without any WIT changes (it probably
should have been v0.6.1, instead).

Release Notes:

- N/A
someone13574 pushed a commit to someone13574/zed that referenced this pull request Dec 16, 2025
…44025)

This PR forks a new version of the `zed_extension_api` in preparation
for new changes.

We're jumping from v0.6.0 to v0.8.0 for the WIT because we released
v0.7.0 of the `zed_extension_api` without any WIT changes (it probably
should have been v0.6.1, instead).

Release Notes:

- N/A
MrSubidubi pushed a commit that referenced this pull request Feb 9, 2026
## Summary

When the v0.8.0 extension API was forked in #44025, the five DAP
dispatcher methods in `wit.rs` were not updated to handle
`Extension::V0_8_0`. Because `V0_8_0` is listed before `V0_6_0` in the
enum, the wildcard `_ =>` catch-all fires first, causing all DAP calls
to bail with `"not available prior to v0.6.0"` for any extension
targeting the v0.8.0 API.

The DAP WIT interface is identical between v0.6.0 and v0.8.0, so the
handler code is the same — this just adds the missing match arms for:

- `call_get_dap_binary`
- `call_dap_request_kind`
- `call_dap_config_to_scenario`
- `call_dap_locator_create_scenario`
- `call_run_dap_locator`

This follows the same pattern used by every other method in the
`Extension` impl block, which already handles both `V0_8_0` and
`V0_6_0`.

## Test plan

- Verified that an extension targeting `zed_extension_api` v0.8.0 with
DAP support can successfully start a debug session (previously failed
with `"dap_request_kind not available prior to v0.6.0"`)

Release Notes:

- Fixed DAP (Debug Adapter Protocol) methods failing for extensions
targeting the v0.8.0 extension API.
melocene pushed a commit to melocene/zed that referenced this pull request Feb 16, 2026
…8777)

## Summary

When the v0.8.0 extension API was forked in zed-industries#44025, the five DAP
dispatcher methods in `wit.rs` were not updated to handle
`Extension::V0_8_0`. Because `V0_8_0` is listed before `V0_6_0` in the
enum, the wildcard `_ =>` catch-all fires first, causing all DAP calls
to bail with `"not available prior to v0.6.0"` for any extension
targeting the v0.8.0 API.

The DAP WIT interface is identical between v0.6.0 and v0.8.0, so the
handler code is the same — this just adds the missing match arms for:

- `call_get_dap_binary`
- `call_dap_request_kind`
- `call_dap_config_to_scenario`
- `call_dap_locator_create_scenario`
- `call_run_dap_locator`

This follows the same pattern used by every other method in the
`Extension` impl block, which already handles both `V0_8_0` and
`V0_6_0`.

## Test plan

- Verified that an extension targeting `zed_extension_api` v0.8.0 with
DAP support can successfully start a debug session (previously failed
with `"dap_request_kind not available prior to v0.6.0"`)

Release Notes:

- Fixed DAP (Debug Adapter Protocol) methods failing for extensions
targeting the v0.8.0 extension API.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant