Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
extension: Ensure that compiled extension provides at least one feature (#47715)
Finn Evers7cfa0fb876e2
diff --git a/crates/extension_cli/src/main.rs b/crates/extension_cli/src/main.rsindex 7cf327357ee..fbffe877e58 100644--- a/crates/extension_cli/src/main.rs+++ b/crates/extension_cli/src/main.rs@@ -78,6 +78,12 @@ async fn main() -> Result<()> {.await.context("failed to compile extension")?;+ let extension_provides = extension_provides(&manifest);++ if extension_provides.is_empty() {+ bail!("extension does not provide any features");+ }+let grammars = test_grammars(&manifest, &extension_path, &mut wasm_store)?;test_languages(&manifest, &extension_path, &grammars)?;test_themes(&manifest, &extension_path, fs.clone()).await?;@@ -102,8 +108,6 @@ async fn main() -> Result<()> {);}- let extension_provides = extension_provides(&manifest);-let manifest_json = serde_json::to_string(&rpc::ExtensionApiManifest {name: manifest.name,version: manifest.version,