mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-08 15:27:06 +03:00
Log prettier installation start & success
This commit is contained in:
parent
3e3b64bb1c
commit
d92153218c
@ -625,6 +625,7 @@ impl Project {
|
|||||||
let Some(node) = self.node.as_ref().cloned() else {
|
let Some(node) = self.node.as_ref().cloned() else {
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
log::info!("Initializing default prettier with plugins {new_plugins:?}");
|
||||||
let fs = Arc::clone(&self.fs);
|
let fs = Arc::clone(&self.fs);
|
||||||
let locate_prettier_installation = match worktree.and_then(|worktree_id| {
|
let locate_prettier_installation = match worktree.and_then(|worktree_id| {
|
||||||
self.worktree_for_id(worktree_id, cx)
|
self.worktree_for_id(worktree_id, cx)
|
||||||
@ -731,6 +732,7 @@ impl Project {
|
|||||||
.await
|
.await
|
||||||
.context("prettier & plugins install")
|
.context("prettier & plugins install")
|
||||||
.map_err(Arc::new)?;
|
.map_err(Arc::new)?;
|
||||||
|
log::info!("Initialized prettier with plugins: {installed_plugins:?}");
|
||||||
project.update(&mut cx, |project, _| {
|
project.update(&mut cx, |project, _| {
|
||||||
project.default_prettier.prettier =
|
project.default_prettier.prettier =
|
||||||
PrettierInstallation::Installed(PrettierInstance {
|
PrettierInstallation::Installed(PrettierInstance {
|
||||||
|
@ -639,6 +639,7 @@ impl Project {
|
|||||||
let Some(node) = self.node.as_ref().cloned() else {
|
let Some(node) = self.node.as_ref().cloned() else {
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
log::info!("Initializing default prettier with plugins {new_plugins:?}");
|
||||||
let fs = Arc::clone(&self.fs);
|
let fs = Arc::clone(&self.fs);
|
||||||
let locate_prettier_installation = match worktree.and_then(|worktree_id| {
|
let locate_prettier_installation = match worktree.and_then(|worktree_id| {
|
||||||
self.worktree_for_id(worktree_id, cx)
|
self.worktree_for_id(worktree_id, cx)
|
||||||
@ -745,6 +746,7 @@ impl Project {
|
|||||||
.await
|
.await
|
||||||
.context("prettier & plugins install")
|
.context("prettier & plugins install")
|
||||||
.map_err(Arc::new)?;
|
.map_err(Arc::new)?;
|
||||||
|
log::info!("Initialized prettier with plugins: {installed_plugins:?}");
|
||||||
project.update(&mut cx, |project, _| {
|
project.update(&mut cx, |project, _| {
|
||||||
project.default_prettier.prettier =
|
project.default_prettier.prettier =
|
||||||
PrettierInstallation::Installed(PrettierInstance {
|
PrettierInstallation::Installed(PrettierInstance {
|
||||||
|
Loading…
Reference in New Issue
Block a user