diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-07-26 02:45:44 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-26 02:45:44 +0300 |
| commit | 8843bbb0c4dc4e6b52ca5d0a6592ce80be56a19c (patch) | |
| tree | 9387a75a8ae34fd864de83355412331c4f22a2b9 /src/app/api/plugins | |
| parent | 547aba8e0ab310623f1986d3026658f708d432bd (diff) | |
fix: improve sidebar worktree hierarchy and reordering (#1873)
* fix: clarify sidebar worktree hierarchy
refs #1694
* feat: reorder worktree groups as a unit
refs #1694
Diffstat (limited to 'src/app/api/plugins')
| -rw-r--r-- | src/app/api/plugins/context.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/app/api/plugins/context.rs b/src/app/api/plugins/context.rs index 16d2fdb1..efef83b9 100644 --- a/src/app/api/plugins/context.rs +++ b/src/app/api/plugins/context.rs @@ -63,6 +63,12 @@ impl App { context }) }), + EventData::WorkspaceReordered { workspace_ids, .. } => workspace_ids + .first() + .and_then(|workspace_id| { + self.plugin_context_for_workspace_id(workspace_id, correlation_id) + }) + .unwrap_or_else(|| empty_plugin_context(correlation_id)), EventData::WorkspaceRenamed { workspace_id, .. } | EventData::WorkspaceMoved { workspace_id, .. } | EventData::WorkspaceFocused { workspace_id } => self |
