Microsoft/vscode
GitHub で見るSCM Working Set - persist pinned tabs when switching branches
Open
#214,625 opened on 2024年6月7日
feature-requesthelp wantedscm
Repository metrics
- Stars
- (74,848 stars)
- PR merge metrics
- (平均マージ 11h 43m) (30d で 1,000 merged PRs)
説明
I love the new Working Sets feature (#35307) - nice work! In particular I like setting mine to "scm.workingSets.default": "empty" so I have a fresh slate when switching branches, though it'd be nice if there was a way to persist the pinned tabs when switching branches since the files I have there tend to be ones I need to reference across branches.
I see two approaches to this, in order of preference:
- Add another setting named something like
"scm.workingSets.persistPins": truewhere pinned tabs are maintained globally across working sets. If you close/open a pinned tab in one working set, it will remain closed/opened when switching working sets. - Add a third
scm.workingSets.defaultoption named something likepinned. This would carry forward just the pinned tabs I have in the current working set if the switched branch doesn't have a working set yet. I don't like this one as much because it means working sets won't always have the same set of pinned tabs when I add/remove pins.