extensions: Load extension byte repr in background thread (again) (#41398)

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz
2025-10-28 20:54:35 +00:00
committed by GitHub
parent 5e7927f628
commit b9eafb80fd
+1 -1
View File
@@ -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)?);