From b9eafb80fdd32c5f3f64ba170e957e126ae5b7ed Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Tue, 28 Oct 2025 21:54:35 +0100 Subject: [PATCH] extensions: Load extension byte repr in background thread (again) (#41398) Release Notes: - N/A --- crates/extension_host/src/wasm_host.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/extension_host/src/wasm_host.rs b/crates/extension_host/src/wasm_host.rs index bf3732b7e8497a09d5067e11ab78e7165fb54a46..eb26c44f20519b7cdb3a38859f23ce99365fe505 100644 --- a/crates/extension_host/src/wasm_host.rs +++ b/crates/extension_host/src/wasm_host.rs @@ -658,7 +658,7 @@ impl WasmHost { }; cx.spawn(async move |cx| { let (extension_task, manifest, work_dir, tx, zed_api_version) = - load_extension_task.await?; + cx.background_executor().spawn(load_extension_task).await?; // we need to run run the task in an extension context as wasmtime_wasi may // call into tokio, accessing its runtime handle let task = Arc::new(gpui_tokio::Tokio::spawn(cx, extension_task)?);