# Ensure compiled extensions work with older Zed versions \(\#33051\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/ca3f1d624ae3f1e397bdf9b51f61654785601344)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: ca3f1d624ae3f1e397bdf9b51f61654785601344

Requested commit: ca3f1d624ae3f1e397bdf9b51f61654785601344

Commit: ca3f1d624ae3f1e397bdf9b51f61654785601344

Tree: 4da884660ca0889de5e09f5b9509338055e30b52

Author: Finn Evers

Committer: GitHub

## Message

```
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
```

## Parents

- [00fe195416608d765f4dc61e0aac55d373a2699c](https://git.cafe/gitcafe/zed/commit/00fe195416608d765f4dc61e0aac55d373a2699c?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/ca3f1d624ae3f1e397bdf9b51f61654785601344?format=markdown)
