Use fit instead of center for Agent following (#30228)

Makes it easier to review the Agent edits since more of the previous
edits will be visible on screen.

Release Notes:

- N/A
This commit is contained in:
Ben Brandt
2025-05-08 10:50:17 +00:00
committed by GitHub
parent e8b67872ed
commit d06d0e6a94
+1 -1
View File
@@ -372,7 +372,7 @@ impl FollowableItem for Editor {
};
drop(buffer);
self.set_selections_from_remote(vec![selection], None, window, cx);
self.request_autoscroll_remotely(Autoscroll::center(), cx);
self.request_autoscroll_remotely(Autoscroll::fit(), cx);
}
}