You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Keep scroll position stable when closing a tab in the tab well #13001
František Svoboda (@PunchyRascal) share a video? I think this behaviour is intentional if the first tab was active before opening the last one (we go back in MRU order and open it).
I see no reason to generate focus to active tab since the tab never lost the focus, it is still open, I am just trying to close a few tabs at the end of the tab bar, I am not activating other tabs or closing active tab.
I am undecided how to best fix this because it might also cause in users reporting issues why the current tab is not revealed. I think eventually maybe it needs to boil down to a setting which sucks too.
Maybe a delay could be added that after a close we only reveal the active tab after some timeout so that you can continue closing tabs without loosing context.
Anyway, I would accept a PR in this area if someone wants to jump in 👍
It seems that the focus is lost when you close inactive tabs (using middle click or right-click menu), and closing your active tab activates the previous editor, hence the focus gained.
Ok, let's see how it goes, I pushed a fix that ended up to be a larger refactoring (also for #22292) that is why I did not merge your PR.
Let me know how it goes. The idea is that invoking close from within the tab container will not cause the active tab to be revealed (using the same flag to block revealing once).
Cool. The only thing I am not doing, which maybe users might complain is that when focus moves back into the editor (if it was outside e.g. in the explorer), we do not reveal the active tab. But that is actually also the behaviour today.
Activity
bpasero commentedon Sep 29, 2016
František Svoboda (@PunchyRascal) share a video? I think this behaviour is intentional if the first tab was active before opening the last one (we go back in MRU order and open it).
PunchyRascal commentedon Sep 29, 2016
I see no reason to generate focus to active tab since the tab never lost the focus, it is still open, I am just trying to close a few tabs at the end of the tab bar, I am not activating other tabs or closing active tab.
I edited the initial report for better clarity.
bpasero commentedon Sep 29, 2016
František Svoboda (@PunchyRascal) oh yeah I see it, uncooool
bpasero commentedon Oct 3, 2016
I am undecided how to best fix this because it might also cause in users reporting issues why the current tab is not revealed. I think eventually maybe it needs to boil down to a setting which sucks too.
Maybe a delay could be added that after a close we only reveal the active tab after some timeout so that you can continue closing tabs without loosing context.
Anyway, I would accept a PR in this area if someone wants to jump in 👍
12 remaining items
initialshl commentedon Mar 9, 2017
It seems that the focus is lost when you close inactive tabs (using middle click or right-click menu), and closing your active tab activates the previous editor, hence the focus gained.
PunchyRascal commentedon Mar 9, 2017
It is difficult to demonstrate that the editor does not receive the keystrokes, but after closing the tab, I kept typing, but nothing happened.
bpasero commentedon Mar 9, 2017
Oh yeah I can reproduce (only when closing an inactive tab), that should be something to fix...
bpasero commentedon Mar 9, 2017
Ok, let's see how it goes, I pushed a fix that ended up to be a larger refactoring (also for #22292) that is why I did not merge your PR.
Let me know how it goes. The idea is that invoking close from within the tab container will not cause the active tab to be revealed (using the same flag to block revealing once).
PunchyRascal commentedon Mar 10, 2017
Just tried it, it's amazing, thanks :)
bpasero commentedon Mar 10, 2017
Cool. The only thing I am not doing, which maybe users might complain is that when focus moves back into the editor (if it was outside e.g. in the explorer), we do not reveal the active tab. But that is actually also the behaviour today.
isidorn commentedon Mar 28, 2017
Adding verified by user
Keep scroll position stable when closing a tab in the tab well (fixes m…