ZIm/crates/project_panel/src
Andrew Lygin effc317a06
Fix project panel scrolling position restoration (#8961)
Project panel loses the last scrolling position every time the user
hides/shows it. This PR fixes the problem.

The reason of the problem is that `UniformListScrollHandle`, which is
intended to store the scrolling position between redrawings, is only
used for ad-hoc autoscrollings to the list items, while the
`interactivity.scroll_handle` that is responsible for the scrolling
position, doesn't survive the project panel hiding.

How the problem looks:


https://github.com/zed-industries/zed/assets/2101250/7c7e3da6-9a9d-4f28-a181-ee9547349d4c

Release Notes:

- Fixed scrolling position restoration in the Project Panel.
2024-03-06 12:00:51 -08:00
..
file_associations.rs Remove unneeded 'static lifetimes on &strs in constants (#8698) 2024-03-02 00:40:49 -05:00
project_panel.rs Fix project panel scrolling position restoration (#8961) 2024-03-06 12:00:51 -08:00
project_panel_settings.rs Revert "Add support of auto folded directories" (#8476) 2024-02-27 11:26:18 +01:00