Skip to content

Commit 86b8ed4

Browse files
authored
Fix autoreveal on file nest (microsoft#165272)
1 parent 469ee93 commit 86b8ed4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/vs/workbench/contrib/files/browser/views/explorerView.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,11 @@ export class ExplorerView extends ViewPane implements IExplorerView {
761761
}
762762

763763
try {
764+
// We must expand the nest to have it be populated in the tree
765+
if (item.nestedParent) {
766+
await this.tree.expand(item.nestedParent);
767+
}
768+
764769
if (reveal === true && this.tree.getRelativeTop(item) === null) {
765770
// Don't scroll to the item if it's already visible, or if set not to.
766771
this.tree.reveal(item, 0.5);

0 commit comments

Comments
 (0)