Skip to content
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

Merged
merged 5 commits into from
Jul 7, 2024

Conversation

benibenj
Copy link
Contributor

@benibenj benibenj commented Jul 5, 2024

The comment in the MultiRowEditorControl class was misleading and has been updated to provide accurate information.

#193690

@benibenj benibenj self-assigned this Jul 5, 2024
@benibenj benibenj enabled auto-merge (squash) July 5, 2024 14:06
@VSCodeTriageBot VSCodeTriageBot added this to the July 2024 milestone Jul 5, 2024
@benibenj
Copy link
Contributor Author

benibenj commented Jul 5, 2024

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 openEditor or updateEditorSelection only redraw if there has been a change and only update tabs that actually have to be updated.

@benibenj benibenj changed the title Fix misleading comment in MultiRowEditorControl Remove MultiRowEditorControl Hack and properly redraw tabs on restore Jul 5, 2024
@bpasero bpasero self-requested a review July 5, 2024 18:00
Copy link
Member

@bpasero bpasero left a 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 is false
  • pin a tab
  • set workbench.editor.pinnedTabsOnSeparateRow to true

=> 🐛 an empty row appears

@benibenj
Copy link
Contributor Author

benibenj commented Jul 7, 2024

Similar to the restore editors problem. When changing the type of tab bar, we should open all editors and not just the active one.

@benibenj benibenj requested a review from bpasero July 7, 2024 09:04
@benibenj benibenj merged commit 149a798 into main Jul 7, 2024
6 checks passed
@benibenj benibenj deleted the benibenj/fancy-pigeon branch July 7, 2024 11:04
aaronchucarroll pushed a commit to aaronchucarroll/vscode that referenced this pull request Jul 10, 2024
…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>
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Aug 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants