ZIm/crates/collab/src
Finn Evers e6267c42f7
Ensure pane: swap item right does not panic (#36765)
This fixes a panic I randomly ran into whilst mistyping in the command
palette: I accidentally ran `pane: swap item right`in a state where no
items were opened in my active pane. We were checking for `index + 1 ==
self.items.len()` there when it really should be `>=`, as otherwise in
the case of no items this panics.

This PR fixes the bug, adds a test for both the panic as well as the
actions themselves (they were untested previously). Lastly (and mostly),
this also cleans up a bit around existing actions to update them with
how we generally handle actions now.

Release Notes:

- Fixed a panic that could occur with the `pane: swap item right`
action.
2025-08-22 23:28:55 +02:00
..
api Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
bin windows: Make collab run on Windows (#23117) 2025-01-17 09:39:13 +02:00
db Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
llm collab: Remove unused billing-related database code (#36282) 2025-08-15 22:58:10 +00:00
rpc collab: Increase minimum required version to connect (#36255) 2025-08-15 16:13:52 +00:00
tests Ensure pane: swap item right does not panic (#36765) 2025-08-22 23:28:55 +02:00
api.rs collab: Remove GET /users/look_up endpoint (#36279) 2025-08-15 22:01:41 +00:00
auth.rs Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
completion.rs Supermaven (#10788) 2024-05-03 12:50:42 -07:00
db.rs lints: A bunch of extra style lint fixes (#36568) 2025-08-20 12:05:58 +02:00
env.rs Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
errors.rs Remove more unused code related to GitHub auth and errors 2022-04-21 08:57:49 -06:00
executor.rs chore: Prepare for Rust edition bump to 2024 (without autofix) (#27791) 2025-03-31 20:10:36 +02:00
lib.rs collab: Remove unused billing-related database code (#36282) 2025-08-15 22:58:10 +00:00
llm.rs proto: Remove UpdateUserPlan message (#36268) 2025-08-15 19:21:04 +00:00
main.rs collab: Remove unused billing-related database code (#36282) 2025-08-15 22:58:10 +00:00
migrations.rs Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
rpc.rs Stop waiting for part of LSP responses on remote Collab clients' part (#36557) 2025-08-21 09:24:34 +03:00
seed.rs Update names of collab auth functions to clarify behavior (#32648) 2025-06-13 00:35:18 +00:00
tests.rs collab: Remove Stripe code (#36275) 2025-08-15 20:49:56 +00:00
user_backfiller.rs Auto-fix clippy::collapsible_if violations (#36428) 2025-08-19 13:27:24 +00:00