Better prettier format logging
This commit is contained in:
parent
a9f80a603c
commit
2d5741aef8
2 changed files with 2 additions and 0 deletions
|
@ -285,6 +285,7 @@ impl Prettier {
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
};
|
};
|
||||||
|
log::debug!("Formatting file {:?} with prettier, plugins :{plugins:?}, options: {prettier_options:?}", buffer.file().map(|f| f.full_path(cx)));
|
||||||
|
|
||||||
FormatParams {
|
FormatParams {
|
||||||
text: buffer.text(),
|
text: buffer.text(),
|
||||||
|
|
|
@ -8489,6 +8489,7 @@ impl Project {
|
||||||
.await
|
.await
|
||||||
.context("fetching latest npm versions")?;
|
.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)| {
|
let borrowed_packages = packages_to_versions.iter().map(|(package, version)| {
|
||||||
(package.as_str(), version.as_str())
|
(package.as_str(), version.as_str())
|
||||||
}).collect::<Vec<_>>();
|
}).collect::<Vec<_>>();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue