workspace: Fix “close all” closing pinned tabs
Fixed the bug where the pinned tabs were also being closed with close all when it should not have been this way. closes: https://github.com/zed-industries/zed/issues/28166
Closes #28166
Release Notes:
- N/A or Added/Fixed/Improved ...
This PR seems to contain changes that don’t appear to be directly related to the fix.
We should make the minimal set of changes required for the fix. If there are prerequisite changes, let’s pull those out into a separate PR.
The changes in this PR that are relevant to the title seem to be an almost exact copy of those in #28199. Could be a coincidence, but I think #28199 should be preferred either way.
Closing in favor of #28199.