Basic side-by-side diff implementation (#43586)

Release Notes:

- N/A

---------

Co-authored-by: cameron <cameron.studdstreet@gmail.com>
Co-authored-by: Cameron <cameron@zed.dev>
This commit is contained in:
Cole Miller
2025-11-30 22:45:01 -05:00
committed by GitHub
co-authored by cameron Cameron
parent ca6e64d451
commit 2e00f40c54
29 changed files with 1915 additions and 518 deletions
+5
View File
@@ -50,6 +50,11 @@ impl MultiBuffer {
if let Some(to_remove) = self.excerpts_by_path.remove(&path) {
self.remove_excerpts(to_remove, cx)
}
if let Some(follower) = &self.follower {
follower.update(cx, |follower, cx| {
follower.remove_excerpts_for_path(path, cx);
});
}
}
pub fn location_for_path(&self, path: &PathKey, cx: &App) -> Option<Anchor> {