Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

adjust buffer-formatting assertion to reflect final newline addition

Max Brunsfelde7b56f6342ef
diff --git a/crates/collab/src/tests/integration_tests.rs b/crates/collab/src/tests/integration_tests.rs
index 4c8f9781641..1ab78ac310b 100644
--- a/crates/collab/src/tests/integration_tests.rs
+++ b/crates/collab/src/tests/integration_tests.rs
@@ -3892,9 +3892,11 @@ async fn test_formatting_buffer(
})
.await
.unwrap();
+
+ // The edits from the LSP are applied, and a final newline is added.
assert_eq!(
buffer_b.read_with(cx_b, |buffer, _| buffer.text()),
- "let honey = \"two\""
+ "let honey = \"two\"\n"
);
// Ensure buffer can be formatted using an external command. Notice how the