ZIm/crates/extension/src
Finn Evers ca3f1d624a
Ensure compiled extensions work with older Zed versions (#33051)
Closes #33039

This PR fixes a bug which causes the newest versions of the Biome and
Tombi extensions to not work with older Zed versions.

The bug occurs because in #32822, the type of the debug adapter and
debug locators was changed from a Vec to a BTreeMap. However, these
fields were already introduced much earlier in Zed, which now causes the
de-serialization of the `extension.toml` to fail for older Zed versions.
Any extension compiled with the newest extension CLI bumped in
https://github.com/zed-industries/extensions/pull/2866 will not work
with older Zed versions prior to v0.191.

By adding this change and bumping the extension CLI again, this could be
prevented. On de-serialization, we would just fallback to either a Vec
for versions prior to v0.190 or a BTreeMap after. Feel free to let me
know what you think here.

Release Notes:

- N/A
2025-06-19 22:35:19 +02:00
..
types extension: Update DAP extension API (#32448) 2025-06-16 16:25:32 +02:00
extension.rs extension: Another batch of updates for DAP extension API (#32809) 2025-06-16 21:34:05 +02:00
extension_builder.rs extensions: Yet another PR for debugger touchups (#32822) 2025-06-17 07:34:55 +00:00
extension_events.rs agent: Remove context server settings when uninstalling MCP extension (#32560) 2025-06-11 19:30:03 +00:00
extension_host_proxy.rs extensions: Yet another PR for debugger touchups (#32822) 2025-06-17 07:34:55 +00:00
extension_manifest.rs Ensure compiled extensions work with older Zed versions (#33051) 2025-06-19 22:35:19 +02:00
types.rs debugger: Add extensions support (#30625) 2025-05-13 22:42:51 +00:00