ZIm/crates/workspace/src
Kirill Bulatov 6c50659c30
Do not serialize workspace for item activations with no focus changes (#22891)
Follow-up of https://github.com/zed-industries/zed/pull/22730

Fixes excessive workspace serialization, when scrolling over outline
items in the outline panel: the panel will move the caret (selection)
over the file, following its outlines, causing the same item to be
re-activated over and over.


7a7cef2dd1/crates/workspace/src/persistence/model.rs (L257-L268)

does not seem to use position within an item, just the fact whether the
item is active or not:


7a7cef2dd1/crates/workspace/src/persistence/model.rs (L511-L517)

so, stop serializing the workspace state if no focus changes were made,
or the pane activated is the same.

Release Notes:

- N/A
2025-01-09 11:58:10 +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 Fix double read panic in nav history (#22754) 2025-01-08 23:05:34 +00:00
modal_layer.rs chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
notifications.rs Improve MessageNotification design (#22829) 2025-01-08 14:51:14 +00:00
pane.rs Do not serialize workspace for item activations with no focus changes (#22891) 2025-01-09 11:58:10 +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 Do not serialize workspace for item activations with no focus changes (#22891) 2025-01-09 11:58:10 +00:00
workspace_settings.rs workspace: Fix doc comments (#22063) 2024-12-16 08:27:14 -05:00