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/workspaces.rs | |
| parent | b7a504b35e54e68ca7aceb01d21f066124f7a536 (diff) | |
fix: emit plugin lifecycle events from ui worktree flows
refs #662
Diffstat (limited to 'src/app/api/workspaces.rs')
| -rw-r--r-- | src/app/api/workspaces.rs | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/src/app/api/workspaces.rs b/src/app/api/workspaces.rs index cdfd4ec5..d1d7bf5c 100644 --- a/src/app/api/workspaces.rs +++ b/src/app/api/workspaces.rs @@ -63,29 +63,7 @@ impl App { crate::logging::workspace_renamed(&workspace.id); } } - let workspace = self.workspace_info(index); - let tab = self - .tab_info(index, 0) - .expect("new workspace should have an initial tab"); - let root_pane = self - .root_pane_info(index, 0) - .expect("new workspace should have an initial root pane"); - self.emit_event(EventEnvelope { - event: EventKind::WorkspaceCreated, - data: EventData::WorkspaceCreated { - workspace: workspace.clone(), - }, - }); - 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_workspace_open_events(index); encode_success( id, self.workspace_created_result(index) |
