Skip to content

Ability to know if a custom view is visible or not #48198

@patrys

Description

@patrys

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions