Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
windows: Fix extension uninstall (#18467)
张小白9f72e05c4056
diff --git a/crates/extension_host/src/extension_host.rs b/crates/extension_host/src/extension_host.rsindex 36f1f2960cf..2bc1862b6f7 100644--- a/crates/extension_host/src/extension_host.rs+++ b/crates/extension_host/src/extension_host.rs@@ -838,7 +838,7 @@ impl ExtensionStore {});fs.remove_dir(- &work_dir,+ &extension_dir,RemoveOptions {recursive: true,ignore_if_not_exists: true,@@ -846,8 +846,12 @@ impl ExtensionStore {).await?;+ // todo(windows)+ // Stop the server here.+ this.update(cx, |this, cx| this.reload(None, cx))?.await;+fs.remove_dir(- &extension_dir,+ &work_dir,RemoveOptions {recursive: true,ignore_if_not_exists: true,@@ -855,7 +859,6 @@ impl ExtensionStore {).await?;- this.update(cx, |this, cx| this.reload(None, cx))?.await;anyhow::Ok(())}).detach_and_log_err(cx)