Get cargo test --workspace compiling again

This commit is contained in:
Conrad Irwin 2023-10-27 11:03:30 +02:00
parent 079de6fdf7
commit d2ab0d651e
2 changed files with 2 additions and 12 deletions

View File

@ -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,

View File

@ -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<Self>) {
let mut language_servers_to_start = Vec::new();
let mut language_formatters_to_check = Vec::new();