ZIm/crates/workspace/src
Thorsten Ball 32e96e126f
workspace: Ensure last_active_center_pane is updated on focus (#17140)
This fixes a bug that I've been running into for quite a while:

- Open a new terminal inside Zed
- (Center pane loses focus)
- (Workspace is serialized)
- Quit Zed
- Open Zed
- (Workspace is deserialized without an active pane)
- Put cursor in assistant panel
- Try to use `ActivatePaneInDirection` to go to the center
- Does not work

So what this fix does is to ensure that in case the pane does become
focused, even though it was already marked as focused, the active center
pane is set.

It also adds a fallback when trying to get the last active pane.

Release Notes:

- Fixed an issue where `workspace::ActivatePaneInDirection` could not
activate the center pane (i.e. one couldn't navigate from terminal or
assistant panel to the center pane) after loading Zed.
2024-08-30 11:54:46 +02:00
..
persistence Implement "join pane into next" (#16077) 2024-08-27 00:51:51 +03:00
dock.rs Introduce following for assistant panel (#14479) 2024-07-15 11:36:27 +02:00
item.rs assistant: Undo workflow step when buffer is discarded (#16465) 2024-08-19 18:42:49 +02:00
modal_layer.rs Use ui::prelude::* in a few more spots (#14807) 2024-07-19 08:57:51 -04:00
notifications.rs Copy/paste images into editors (Mac only) (#15782) 2024-08-13 13:18:25 -04:00
pane.rs pane: Fix tooltips of navigation buttons (#17035) 2024-08-29 00:28:00 +02:00
pane_group.rs Use split direction preferences more (#16679) 2024-08-22 11:13:33 -06:00
persistence.rs zed: Persist window stack order across restarts (#15419) 2024-07-29 17:05:56 +02:00
searchable.rs Display buffer/project search entries in the outline panel (#16589) 2024-08-25 21:40:02 +03:00
shared_screen.rs Copy/paste images into editors (Mac only) (#15782) 2024-08-13 13:18:25 -04:00
status_bar.rs Add a setting to show time to first window draw and frames per second in status bar (#16422) 2024-08-18 15:22:19 -06:00
tasks.rs Extend task templates with shell and hide fields to use custom shells and custom close behavior (#15031) 2024-07-23 22:58:36 +03:00
toolbar.rs assistant: Show regenerate button only on hover (#15972) 2024-08-08 13:08:57 +02:00
workspace.rs workspace: Ensure last_active_center_pane is updated on focus (#17140) 2024-08-30 11:54:46 +02:00
workspace_settings.rs Add option to set split direction (#16345) 2024-08-22 08:53:43 -06:00