-
Notifications
You must be signed in to change notification settings - Fork 720
Description
- Extension version: 0.70.0
- VSCode Version: 1.81.1
- OS: macOS 13.2.1 (22D68)
Expected behaviour
When opening a file from the changed files tree/list, the "passive sidebar focus" should stay on the selected file/list element. This means that triggering the VSCode command workbench.action.focusSideBar should focus the file in the tree which was previously opened.
After opening index.ts, the tree view should look like this:

Actual behaviour
The moment a file is opened from the tree, the sidebar's focus shifts to the tree view itself. This means that, in order to navigate back to the opened file using the keyboard, you have to start from the very top every time. This is very tedious. The only way to keep focus on the opened file is to click it after it's already been opened, which is of course not ideal when trying to use keyboard navigation.
After opening index.ts, the tree view looks like this (notice the focus outline around the whole view):

While I don't know exactly when, I could swear this used to work as expected a few months ago.
Steps to Reproduce:
- Open list of changes in sidebar
- Either click a file to open it, or navigate there with arrow keys and open it with spacebar
- The "passive" sidebar focus has now moved to the tree view
- Focus sidebar by executing either of these commands:
workbench.action.focusSideBar,prStatus:github.focus - Press the "down" arrow key
- You should now be focused on the highest element in the list, instead of where you left off
Thanks for your consideration :)