-
Notifications
You must be signed in to change notification settings - Fork 34.6k
Description
I maintain an extension that tries to have a tree view follow the cursor position in file in a similar fashion to how explorer pane follows the currently open document.
However when the tree view is collapsed or when a different sidebar pane is active VS Code will forcefully switch to the Explorer pane and expand the tree view. Users find it highly annoying, especially when trying to follow a stack trace in the debugger as clicking any stack frame focuses the code editor which in turn activates the extension and switched away from the Debugger to the Explorer pane.
The only option accepted by TreeView.reveal
is select
. I'd like to propose a focus
option that controls whether the view should be brought to the front (ie. pane focused and tree view expanded) if it isn't there already.