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:
co-authored by
cameron
Cameron
parent
ca6e64d451
commit
2e00f40c54
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user