diff --git a/crates/extension/src/wasm_host.rs b/crates/extension/src/wasm_host.rs index 51b306f1ff..c0e9ec753a 100644 --- a/crates/extension/src/wasm_host.rs +++ b/crates/extension/src/wasm_host.rs @@ -106,9 +106,9 @@ impl WasmHost { wasm_bytes: Vec, manifest: Arc, executor: BackgroundExecutor, - ) -> impl 'static + Future> { + ) -> Task> { let this = self.clone(); - async move { + executor.clone().spawn(async move { let zed_api_version = parse_wasm_extension_version(&manifest.id, &wasm_bytes)?; let component = Component::from_binary(&this.engine, &wasm_bytes) @@ -147,7 +147,7 @@ impl WasmHost { tx, zed_api_version, }) - } + }) } async fn build_wasi_ctx(&self, manifest: &Arc) -> Result {