Add 'Collapse All Diffs' action button to multi-diff editor#199064
Add 'Collapse All Diffs' action button to multi-diff editor#199064hediet merged 6 commits intomicrosoft:mainfrom
Conversation
|
/assign @hediet in the hope this will be considered for merging, perhaps even in time for upcoming endgame of the November 2023 milestone. |
|
|
||
| public collapseAll(): void { | ||
| for (const d of this.items.get()) { | ||
| d.collapsed.set(true, undefined); |
There was a problem hiding this comment.
This should run in a transaction (rather than passing in undefined), as otherwise every collapsed.set will cause a re-layout.
Co-authored-by: Henning Dieterichs <notify.henning.dieterichs@live.de>
|
Fails with: Probably because you took my suggestion where I had to use space to indent (urgh github). |
|
Just noticed:
This might be problematic when you have a multi diff editor to the side. When the |
It's already the case that when an editor's group is not the active group none of its toolbar buttons display. So I don't think anything needs to be changed. Please merge this PR. |
|
Today we have our testing day and don't allow code changes, but we can merge it tomorrow. |
This PR closes #198248