mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-24 17:28:40 +00:00
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 {
|
||||
None
|
||||
};
|
||||
log::debug!("Formatting file {:?} with prettier, plugins :{plugins:?}, options: {prettier_options:?}", buffer.file().map(|f| f.full_path(cx)));
|
||||
|
||||
FormatParams {
|
||||
text: buffer.text(),
|
||||
|
|
|
@ -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<_>>();
|
||||
|
|
Loading…
Reference in a new issue