-
-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Handle essential tabs and container-specific essentials
Refactor workspace switching logic to correctly handle essential tabs and introduce container-specific essentials. This change addresses issues with essential tabs not being handled correctly during workspace switches. The `changeWorkspace` function is refactored to improve clarity and maintainability. The logic for showing and hiding tabs is streamlined, and tab selection is handled more robustly. A new `_shouldShowTab` function is introduced to centralize the logic for determining tab visibility based on workspace and container settings. The logic also handles pinned essential tabs in the different workspace types. The pinned tab manager is updated to support container- specific essentials and to refresh pinned tabs on workspace changes. The `_shouldShowPin` function is introduced to manage visibility of pinned tabs in different workspaces considering essential tabs, pinned tabs and containers. This change also fixes a bug where the selected tab would sometimes be changed unexpectedly when switching workspaces.
- Loading branch information
1 parent
6ed4f21
commit 98dc4f4
Showing
4 changed files
with
215 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.