Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Better prettier format logging
Kirill Bulatov2d5741aef8eb
diff --git a/crates/prettier/src/prettier.rs b/crates/prettier/src/prettier.rsindex c08098ba23f..7871d78d21c 100644--- a/crates/prettier/src/prettier.rs+++ b/crates/prettier/src/prettier.rs@@ -285,6 +285,7 @@ impl Prettier {} else {None};+ log::debug!("Formatting file {:?} with prettier, plugins :{plugins:?}, options: {prettier_options:?}", buffer.file().map(|f| f.full_path(cx)));FormatParams {text: buffer.text(),diff --git a/crates/project/src/project.rs b/crates/project/src/project.rsindex 9786afa71b6..53797b5bb90 100644--- a/crates/project/src/project.rs+++ b/crates/project/src/project.rs@@ -8489,6 +8489,7 @@ impl Project {.await.context("fetching latest npm versions")?;+ log::info!("Fetching default prettier and plugins: {packages_to_versions:?}");let borrowed_packages = packages_to_versions.iter().map(|(package, version)| {(package.as_str(), version.as_str())}).collect::<Vec<_>>();