Use case
When focus moves to the File Explorer, CSS can no longer identify the editor pane that will receive the next opened file. It can only detect the currently focused pane. I want to mark this tab in my theme/CSS.
Proposed solution
Add a CSS-visible class, such as .mod-most-recent-editor, to the most recently active .workspace-leaf. This would let themes visually indicate which editor pane will receive the next opened file.
Current workaround
CSS:
/* Highlight active would-change-file tab in focused pane. Except when pinned, as pinned tabs would be immune to file change. Does not cover the case where tab is not focused. */
.workspace-tabs.mod-active
.workspace-tab-header.is-active:not(:has(.is-pinned, .mod-pinned, .workspace-tab-header-status-icon.mod-pinned))
.workspace-tab-header-inner-title {
color: red !important;
}