mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
trees: always handle an twistie events by the tree if it changes collapsed state (#209090)
This allows preserving your multi-selection while expanding/collapsing other nodes in the tree. I think this is a good overall change to make across our UI. E.g. similarly, without this change, you can't expand a folder in the Explorer view without losing your selection state. cc @joaomoreno Fixes #208852
This commit is contained in:
parent
86bf11fe76
commit
e2dc70e393
|
@ -2295,7 +2295,7 @@ class TreeNodeListMouseController<T, TFilterData, TRef> extends MouseController<
|
|||
this.tree.setFocus([location]);
|
||||
this.tree.toggleCollapsed(location, recursive);
|
||||
|
||||
if (expandOnlyOnTwistieClick && onTwistie) {
|
||||
if (onTwistie) {
|
||||
// Do not set this before calling a handler on the super class, because it will reject it as handled
|
||||
e.browserEvent.isHandledByList = true;
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue