-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
fix: make on first tab cycle back to last tab #11794
fix: make on first tab cycle back to last tab #11794
Conversation
@colin-grant-work Can you take a look at this PR when you have time |
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.
Thank you for your contribution 👍
In order to accept your changes please be sure to sure to sign the eclipse contributor agreement (eca) with the same email as your authorship.
19a91d2
to
32af705
Compare
Before this commit, trying to cycle back to the previous tab, when you were on the first tab had no action. The expected behaviour was to have the last tab in focus. This was because trying to move back from the first tab was thought to be an action of moving to the previous tab group. This commit fixes that issue by treating it as a same tab group action, and redirecting the user to the last tab in the same group. Fixes eclipse-theia#11746 Signed-off-by: Pranav Joglekar <[email protected]>
32af705
to
430437e
Compare
I've signed the agreement. Thanks for also updating the issue description. I'll keep it in mind in the future. |
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.
Thank you for the contribution 👍 I confirmed that:
- cycling available tabs in a group using
view: show previous tab
works as expected (#11746) - closing a tab in a different group will preserve the currently opened tab (#10865)
I'd like to get the feedback of others before merging to see if any regressions are present, but it may take a bit of time since they are at the EclipseCon 2022 conference this week.
thank you @Pranav2612000 I hope this can make it for the next release |
I believe that @colin-grant-work reviewed the pull-request and noticed issues with the approach, the |
I thought this was the expected approach. Can you help me with the exact reproduction so I can fix it. |
@Pranav2612000 I believe that @colin-grant-work expressed an oddity with this approach but I'll let him comment further when he's back. As for now I think it does improve the situation and has value. |
The oddity relates not so much to this case as what happens when we close views and invoke |
What it does
Fixes #11746
Before this commit, trying to cycle back to the previous tab, when you were on the first tab had no action. The expected behaviour was to have the last tab in focus. This was because trying to move back from the first tab was thought to be an action of moving to the previous tab group. This commit fixes that issue by treating it as a same tab group action, and redirecting the user to the last tab in the same group.
How to test
View: Show Previous Tab
on first tab no longer cycle to last tab #11746 is fixedReview checklist
Reminder for reviewers