Commit 8e2f953
committed
fix(view): improve view switching to focus existing leaves and sync sidebar
- Check for existing TaskView leaves before creating new ones
- Focus the existing view using revealLeaf when available
- Update sidebar component to reflect current view mode when switching
- Add missing BasesViewRegistration import to type definitions
This ensures the task view properly reuses existing instances and keeps
the sidebar synchronized with the current view mode.1 parent 5c4f402 commit 8e2f953
2 files changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
289 | | - | |
290 | | - | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
291 | 293 | | |
292 | 294 | | |
293 | 295 | | |
| |||
829 | 831 | | |
830 | 832 | | |
831 | 833 | | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
832 | 837 | | |
833 | 838 | | |
834 | 839 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
0 commit comments