diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-04 15:31:14 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-04 16:51:10 +0300 |
| commit | 15cab964f3494b77159caaea289e17e1596e0720 (patch) | |
| tree | d9614056c26b0d148771a464fc2eb0f0cabc60a2 /src/app/api/worktrees.rs | |
| parent | b78a8a5c565e66e7e5ba9a06d9cb7f3a771fc4b0 (diff) | |
feat: emit layout update events for runtime layout changes
Diffstat (limited to 'src/app/api/worktrees.rs')
| -rw-r--r-- | src/app/api/worktrees.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/app/api/worktrees.rs b/src/app/api/worktrees.rs index 69f43c1b..2f143981 100644 --- a/src/app/api/worktrees.rs +++ b/src/app/api/worktrees.rs @@ -943,11 +943,12 @@ mod tests { 1 ); assert_eq!( - &kinds[kinds.len() - 4..], + &kinds[kinds.len() - 5..], &[ EventKind::WorkspaceCreated, EventKind::TabCreated, EventKind::PaneCreated, + EventKind::LayoutUpdated, EventKind::WorktreeCreated, ] ); @@ -1011,11 +1012,12 @@ mod tests { .map(|(_, event)| event.event) .collect::<Vec<_>>(); assert_eq!( - &event_kinds[event_kinds.len() - 4..], + &event_kinds[event_kinds.len() - 5..], &[ EventKind::WorkspaceCreated, EventKind::TabCreated, EventKind::PaneCreated, + EventKind::LayoutUpdated, EventKind::WorktreeCreated, ] ); |
