extension_cli: Include the list of what an extension provides in the generated manifest (#24295)

This PR updates the Zed extension CLI with support for populating the
`provides` field in the generated extension manifest.

This field will contain the set of features that the extension provides.

For example:

```
"provides": ["themes", "icon-themes"]
```

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-02-05 13:17:19 -05:00 committed by GitHub
parent aaf432fcd2
commit 5a25751521
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 81 additions and 12 deletions

View file

@ -1,3 +1,4 @@
use std::collections::BTreeSet;
use std::str::FromStr;
use chrono::Utc;
@ -370,6 +371,7 @@ fn metadata_from_extension_and_version(
repository: version.repository,
schema_version: Some(version.schema_version),
wasm_api_version: version.wasm_api_version,
provides: BTreeSet::default(),
},
published_at: convert_time_to_chrono(version.published_at),