ZIm/crates/zed/src
Joseph T. Lyons f13f2dfb70
Ensure item-closing actions do not panic when no items are present (#31845)
This PR adds a comprehensive test that ensures that no item-closing
action will panic when no items are present. A test already existed
(`test_remove_active_empty `) that ensured `CloseActiveItem` didn't
panic, but the new test covers:

- `CloseActiveItem`
- `CloseInactiveItems`
- `CloseAllItems`
- `CloseCleanItems`
- `CloseItemsToTheRight`
- `CloseItemsToTheLeft`

I plan to do a bit more clean up in `pane.rs` and this feels like a good
thing to add before that.

Release Notes:

- N/A
2025-06-01 03:31:38 +00:00
..
zed Unify the tasks modal and the new session modal (#31646) 2025-05-29 21:33:52 -04:00
main.rs Disallow running Zed with root privileges (#31331) 2025-05-30 21:22:52 +00:00
reliability.rs Use shortened SHA when displaying version to install (#31281) 2025-05-23 14:53:53 +00:00
zed.rs Ensure item-closing actions do not panic when no items are present (#31845) 2025-06-01 03:31:38 +00:00