ZIm/crates/workspace/src
Kirill Bulatov a827f54022
Reduce amount of workspace serialization happening (#22730)
Part of https://github.com/zed-industries/zed/issues/16472

Reduces amount of workspace serialization happening by:
* fixing the deserialization logic: now it does not set panels that are
hidden to active
* cleaning up `active_panel_index` for docks that are closed, to avoid
emitting extra events for such closed docks
* adjusting outline panel to drop active editor subscriptions on
deactivation — this way, `cx.observe` on the dock with outline panel is
not triggered (used to be triggered on every selection change before)
* adjusting workspace dock drag listener to remember previous
coordinates and only resize the dock if those had changed
* adjusting workspace pane event listener to ignore
`pane::Event::UserSavedItem` and `pane::Event::ChangeItemTitle` that
seem to happen relatively frequently but not influence values that are
serialized for the workspace
* not using `cx.observe` on docks, instead explicitly serializing on
panel zoom and size changes

Release Notes:

- Reduced amount of workspace serialization happening
2025-01-07 11:00:26 +00:00
..
persistence Fix empty title in Recent Projects (#21952) 2025-01-07 03:45:38 +00:00
shared_screen Simplify livekit config so that cargo check Just Works (#21661) 2024-12-06 13:50:59 -08:00
dock.rs Reduce amount of workspace serialization happening (#22730) 2025-01-07 11:00:26 +00:00
item.rs Dequalify WindowContext and ViewContext references (#22477) 2024-12-28 23:09:55 +00:00
modal_layer.rs chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
notifications.rs Add settings to remote servers, use XDG paths on remote, and enable node LSPs (#19176) 2024-10-15 23:32:44 -07:00
pane.rs pane: Turn off preview mode when pinning a tab (#22501) 2025-01-02 04:09:35 +00:00
pane_group.rs Dequalify WindowContext and ViewContext references (#22477) 2024-12-28 23:09:55 +00:00
persistence.rs Move git status out of Entry (#22224) 2025-01-04 01:00:16 +00:00
searchable.rs Display buffer/project search entries in the outline panel (#16589) 2024-08-25 21:40:02 +03:00
shared_screen.rs Simplify livekit config so that cargo check Just Works (#21661) 2024-12-06 13:50:59 -08:00
status_bar.rs Status bar: Reduce right tools lateral margin (#21329) 2024-11-29 10:56:32 -03:00
tasks.rs Cleanups preparing for WindowContext refactor (#22475) 2024-12-28 21:36:14 +00:00
theme_preview.rs Add the SwitchWithLabel component (#22314) 2024-12-20 23:44:47 +00:00
toolbar.rs Refactor Spacing into DynamicSpacing using proc macro (#20504) 2024-11-11 11:08:55 -05:00
workspace.rs Reduce amount of workspace serialization happening (#22730) 2025-01-07 11:00:26 +00:00
workspace_settings.rs workspace: Fix doc comments (#22063) 2024-12-16 08:27:14 -05:00