mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 21:06:57 +00:00
Don't auto expand if it's root in indexTreeModel. Fixes #79540
This commit is contained in:
parent
98467c3b7c
commit
2ebaa78e87
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ export class IndexTreeModel<T extends Exclude<any, undefined>, TFilterData = voi
|
|||
|
||||
const result = this._setListNodeCollapsed(node, listIndex, revealed, collapsed!, recursive || false);
|
||||
|
||||
if (this.autoExpandSingleChildren && !collapsed! && !recursive) {
|
||||
if (node !== this.root && this.autoExpandSingleChildren && !collapsed! && !recursive) {
|
||||
let onlyVisibleChildIndex = -1;
|
||||
|
||||
for (let i = 0; i < node.children.length; i++) {
|
||||
|
|
Loading…
Reference in a new issue