Allow contribute trees to better control collapse-on-click behaviour #45184
Labels
*duplicate
Issue identified as a duplicate of another issue(s)
tree-views
Extension tree view issues
This isn't really a bug and it happens in the standard explorer tree, but it's undesirable when a tree node serves at two purposes (something that can can be selected for editing purposes and also expanded).
In this tree, I have items that can expand/collapse but also represent code in the main editor (for example
AlertDialog
is related to some code):If I click on
AlertTree
to select it (which jumps the editor to its location) it also collapses the node. This is undesirable - the user wants to navigate to it - it doesn't make sense to hide its children.I think there should be some ability on a TreeItem to control this behaviour (for example, I would prefer for it never to collapse on click, unless it was already selected).
I think it works ok in the File explorer tree because clicking on a folder is less useful (it doesn't navigate the editor) and therefore it doesn't happen as often as it would in an outline tree.
The text was updated successfully, but these errors were encountered: