Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Adjust scoring
Antonio Scandurra2e1a4b25912f
diff --git a/crates/ai/src/diff.rs b/crates/ai/src/diff.rsindex b6e25e06244..0f4f3286020 100644--- a/crates/ai/src/diff.rs+++ b/crates/ai/src/diff.rs@@ -79,7 +79,7 @@ pub struct Diff {impl Diff {const INSERTION_SCORE: isize = -1;const DELETION_SCORE: isize = -4;- const EQUALITY_SCORE: isize = 5;+ const EQUALITY_SCORE: isize = 15;pub fn new(old: String) -> Self {let old = old.chars().collect::<Vec<_>>();