Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Log prettier installation start & success
Kirill Bulatovd92153218cee
diff --git a/crates/project/src/prettier_support.rs b/crates/project/src/prettier_support.rsindex 1b0faff3e96..c438f294b68 100644--- a/crates/project/src/prettier_support.rs+++ b/crates/project/src/prettier_support.rs@@ -625,6 +625,7 @@ impl Project {let Some(node) = self.node.as_ref().cloned() else {return;};+ log::info!("Initializing default prettier with plugins {new_plugins:?}");let fs = Arc::clone(&self.fs);let locate_prettier_installation = match worktree.and_then(|worktree_id| {self.worktree_for_id(worktree_id, cx)@@ -731,6 +732,7 @@ impl Project {.await.context("prettier & plugins install").map_err(Arc::new)?;+ log::info!("Initialized prettier with plugins: {installed_plugins:?}");project.update(&mut cx, |project, _| {project.default_prettier.prettier =PrettierInstallation::Installed(PrettierInstance {diff --git a/crates/project2/src/prettier_support.rs b/crates/project2/src/prettier_support.rsindex e9ce8d9a064..c176c79a91f 100644--- a/crates/project2/src/prettier_support.rs+++ b/crates/project2/src/prettier_support.rs@@ -639,6 +639,7 @@ impl Project {let Some(node) = self.node.as_ref().cloned() else {return;};+ log::info!("Initializing default prettier with plugins {new_plugins:?}");let fs = Arc::clone(&self.fs);let locate_prettier_installation = match worktree.and_then(|worktree_id| {self.worktree_for_id(worktree_id, cx)@@ -745,6 +746,7 @@ impl Project {.await.context("prettier & plugins install").map_err(Arc::new)?;+ log::info!("Initialized prettier with plugins: {installed_plugins:?}");project.update(&mut cx, |project, _| {project.default_prettier.prettier =PrettierInstallation::Installed(PrettierInstance {