✨ Area Icon Tabs should remember tab state when returning
Description
In the Navigator (left sidebar), Inspector (right sidebar), and Debug (bottom drawer) Areas, we should be remembering the state of each tab when changing tabs so that when the user returns to the tab, it is in the same state in which it was before leaving the tab. These states include but are not limited to:
- Folder expand/collapse
- Scroll position
- Processes
- Added items
- Terminals
- Settings
- Filters
- Text entry
- Focused item
Alternatives Considered
In the terminal debug tab, we have terminal tabs in which we use a ZStack and change the opacity of items depending on which tab is active (only one item has a value of 1 at a time, the rest are 0). This may not be the best approach if it causes performance concerns. If a better solution is found, it may need to be applied to the debug terminal tab as well.
Additional Context
Related to #923
Screenshots
https://github.com/CodeEditApp/CodeEdit/assets/806104/b0025625-60f9-4ff3-8db2-fbb88af04e7c
@austincondiff Can I try my hand at this issue?
Sure! I will assign this to you. Feel free to reach out to the community on Discord if you need anything!
@Random9ine how is this going?