Better prettier format logging

This commit is contained in:
Kirill Bulatov 2023-09-25 15:08:39 +03:00
parent a9f80a603c
commit 2d5741aef8
2 changed files with 2 additions and 0 deletions

View file

@ -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(),

View file

@ -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<_>>();