From d2ab0d651e9fac66a456a4a05dba17d58599ef7e Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Fri, 27 Oct 2023 11:03:30 +0200 Subject: [PATCH] Get cargo test --workspace compiling again --- crates/language2/src/buffer.rs | 4 ++-- crates/project2/src/project2.rs | 10 ---------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/crates/language2/src/buffer.rs b/crates/language2/src/buffer.rs index 54425cec47..2e03c1da5c 100644 --- a/crates/language2/src/buffer.rs +++ b/crates/language2/src/buffer.rs @@ -159,7 +159,7 @@ pub struct CodeAction { pub lsp_action: lsp2::CodeAction, } -#[derive(Clone, Debug, PartialEq, Eq)] +#[derive(Clone, Debug, PartialEq)] pub enum Operation { Buffer(text::Operation), @@ -182,7 +182,7 @@ pub enum Operation { }, } -#[derive(Clone, Debug, PartialEq, Eq)] +#[derive(Clone, Debug, PartialEq)] pub enum Event { Operation(Operation), Edited, diff --git a/crates/project2/src/project2.rs b/crates/project2/src/project2.rs index 83608a5dfd..9a3c2b34f2 100644 --- a/crates/project2/src/project2.rs +++ b/crates/project2/src/project2.rs @@ -878,16 +878,6 @@ impl Project { // project // } - /// Enables a prettier mock that avoids interacting with node runtime, prettier LSP wrapper, or any real file changes. - /// Instead, if appends the suffix to every input, this suffix is returned by this method. - #[cfg(any(test, feature = "test-support"))] - pub fn enable_test_prettier(&mut self, plugins: &[&'static str]) -> &'static str { - self.node = Some(node_runtime::FakeNodeRuntime::with_prettier_support( - plugins, - )); - Prettier::FORMAT_SUFFIX - } - fn on_settings_changed(&mut self, cx: &mut ModelContext) { let mut language_servers_to_start = Vec::new(); let mut language_formatters_to_check = Vec::new();