diff --git a/crates/extension_host/src/extension_host.rs b/crates/extension_host/src/extension_host.rs index 36f1f2960cfd67623beecf47bcf14932b740aa64..2bc1862b6f7452cb06cc3044afe84be4fdc4c28f 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)