ZIm/crates/workspace/src
Smit Barmase cb439e672d
editor: Fix navigate back for locations opened via preview item (#26943)
Closes #25458

When navigating code from a preview tab with
`enable_preview_from_code_navigation` set to `true`, "Go Back" from a
newly opened tab could focus on the tab to the right instead of
returning to the original preview tab.

Before, we killed the existing preview tab before opening a new one,
which breaking history as the new tab had no reference to the old one.
This caused navigation to shift to the next tab on the right.

Now, we first add the new tab at the preview index, and then kill the
existing preview tab. This preserves the history by linking new preview
tab to existing tab.

Release Notes:

- Fixes an issue where navigating code from a preview tab with
`enable_preview_from_code_navigation` set to `true`, "Go Back" from a
newly opened tab could focus on the tab to the right instead of
returning to the original preview tab.
2025-03-18 00:59:36 +05:30
..
persistence windows: Bring back restoration of tabs (#25870) 2025-03-01 17:18:34 +00:00
shared_screen cx.background_executor().spawn(...) -> cx.background_spawn(...) (#25103) 2025-02-18 20:30:33 +00:00
dock.rs Fix panic opening branch picker in commit modal (#26407) 2025-03-10 16:36:23 -06:00
item.rs Remove worktree and project notifies (#26244) 2025-03-07 10:51:46 -07:00
modal_layer.rs Fix the feedback modal (#26793) 2025-03-14 17:55:52 -04:00
notifications.rs Add user-visible output for remote operations (#25849) 2025-03-03 09:20:15 +00:00
pane.rs editor: Fix navigate back for locations opened via preview item (#26943) 2025-03-18 00:59:36 +05:30
pane_group.rs Allow too many arguments (#26375) 2025-03-10 13:38:30 -06:00
persistence.rs Add user-visible output for remote operations (#25849) 2025-03-03 09:20:15 +00:00
searchable.rs Make buffer search aware of search direction (#24974) 2025-03-04 19:27:37 -07: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 Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
tasks.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
theme_preview.rs Revert "ui: Color cleanup (#26673)" (#26681) 2025-03-13 15:40:57 +00:00
toast_layer.rs Show git toasts for 10s (#26714) 2025-03-13 22:51:07 -06:00
toolbar.rs Allow buffer search in project search (#23819) 2025-01-31 00:13:46 -07:00
workspace.rs Rework git toasts (#26420) 2025-03-11 21:39:29 +00:00
workspace_settings.rs Add last window closed setting (#25185) 2025-02-19 20:03:10 +00:00