-
Notifications
You must be signed in to change notification settings - Fork 28.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove MultiRowEditorControl Hack and properly redraw tabs on restore #220090
Conversation
src/vs/workbench/browser/parts/editor/multiRowEditorTabsControl.ts
Outdated
Show resolved
Hide resolved
I was able to remove the hack. However, I had to also remove the optimization on selection redraw which needs to be revisited. #213160 The optimization should probably be to keep a list of selected tabs which have been drawn, then when they should be drawn again due to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While testing this I noticed a bug:
workbench.editor.pinnedTabsOnSeparateRow
isfalse
- pin a tab
- set
workbench.editor.pinnedTabsOnSeparateRow
totrue
=> 🐛 an empty row appears
Similar to the restore editors problem. When changing the type of tab bar, we should open all editors and not just the active one. |
…microsoft#220090) * update misleading commen * Remove Hack * 💄 * still update title sync * open all editors on tab bar change --------- Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>
The comment in the MultiRowEditorControl class was misleading and has been updated to provide accurate information.
#193690