diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-18 16:05:05 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-18 16:05:43 +0300 |
| commit | d74ba8ca9e49d9d94a4e59a0ee0bdbd1128af76e (patch) | |
| tree | 13473d5a8c3fd137f40e645e9f9eff3081ce3238 /src/app/api/tabs.rs | |
| parent | b7a504b35e54e68ca7aceb01d21f066124f7a536 (diff) | |
fix: emit plugin lifecycle events from ui worktree flows
refs #662
Diffstat (limited to 'src/app/api/tabs.rs')
| -rw-r--r-- | src/app/api/tabs.rs | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/app/api/tabs.rs b/src/app/api/tabs.rs index 079c2ea4..6c14a330 100644 --- a/src/app/api/tabs.rs +++ b/src/app/api/tabs.rs @@ -122,20 +122,7 @@ impl App { self.state.mode = Mode::Terminal; } self.schedule_session_save(); - let tab = self.tab_info(ws_idx, tab_idx).unwrap(); - let root_pane = self - .root_pane_info(ws_idx, tab_idx) - .expect("new tab should have a root pane"); - self.emit_event(EventEnvelope { - event: EventKind::TabCreated, - data: EventData::TabCreated { tab: tab.clone() }, - }); - self.emit_event(EventEnvelope { - event: EventKind::PaneCreated, - data: EventData::PaneCreated { - pane: root_pane.clone(), - }, - }); + self.emit_tab_created_events(ws_idx, tab_idx); encode_success( id, self.tab_created_result(ws_idx, tab_idx) |
