Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix the tests
Kirill Bulatov3e3b64bb1cf4
diff --git a/crates/project/src/prettier_support.rs b/crates/project/src/prettier_support.rsindex 063c4abcc44..1b0faff3e96 100644--- a/crates/project/src/prettier_support.rs+++ b/crates/project/src/prettier_support.rs@@ -601,13 +601,18 @@ impl Project {pub fn install_default_prettier(&mut self,_worktree: Option<WorktreeId>,- _plugins: HashSet<&'static str>,+ plugins: HashSet<&'static str>,_cx: &mut ModelContext<Self>,) {// suppress unused code warnings- let _ = &self.default_prettier.installed_plugins;let _ = install_prettier_packages;let _ = save_prettier_server_file;++ self.default_prettier.installed_plugins.extend(plugins);+ self.default_prettier.prettier = PrettierInstallation::Installed(PrettierInstance {+ attempt: 0,+ prettier: None,+ });}#[cfg(not(any(test, feature = "test-support")))]diff --git a/crates/project2/src/prettier_support.rs b/crates/project2/src/prettier_support.rsindex 15f3028d850..e9ce8d9a064 100644--- a/crates/project2/src/prettier_support.rs+++ b/crates/project2/src/prettier_support.rs@@ -615,13 +615,18 @@ impl Project {pub fn install_default_prettier(&mut self,_worktree: Option<WorktreeId>,- _plugins: HashSet<&'static str>,+ plugins: HashSet<&'static str>,_cx: &mut ModelContext<Self>,) {// suppress unused code warnings- let _ = &self.default_prettier.installed_plugins;let _ = install_prettier_packages;let _ = save_prettier_server_file;++ self.default_prettier.installed_plugins.extend(plugins);+ self.default_prettier.prettier = PrettierInstallation::Installed(PrettierInstance {+ attempt: 0,+ prettier: None,+ });}#[cfg(not(any(test, feature = "test-support")))]