# extension_cli: Clear out existing manifest collections for old \`extension.json\` \(\#9780\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0981c97a2254b5402b76bd9d8aaf73547798bffa

Requested commit: 0981c97a2254b5402b76bd9d8aaf73547798bffa

Commit: 0981c97a2254b5402b76bd9d8aaf73547798bffa

Tree: f715fa9db950064a8965a82712a12408bef7ca79

Author: Marshall Bowers

Committer: GitHub

## Message

```
extension_cli: Clear out existing manifest collections for old `extension.json` (#9780)

This PR fixes an issue in the extension CLI when building extensions
using the old manifest schema (`extension.json`).

If there were values provided for the `languages`, `grammars`, or
`themes` collections, these could interfere with the packaging process.

We aren't expecting these fields to be set in the source
`extension.json` (just in the generated one), so we can clear them out
when building up the manifest.

Release Notes:

- N/A

Co-authored-by: Max <max@zed.dev>
```

## Parents

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

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