From 664de7bea7733468b4a087bb3a06a8a373b76304 Mon Sep 17 00:00:00 2001 From: Logan Ramos Date: Wed, 2 Nov 2022 15:09:18 -0400 Subject: [PATCH] Fix autoreveal on file nest --- src/vs/workbench/contrib/files/browser/views/explorerView.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/vs/workbench/contrib/files/browser/views/explorerView.ts b/src/vs/workbench/contrib/files/browser/views/explorerView.ts index 00239ee089cf1..7b0e72e16f5bc 100644 --- a/src/vs/workbench/contrib/files/browser/views/explorerView.ts +++ b/src/vs/workbench/contrib/files/browser/views/explorerView.ts @@ -761,6 +761,11 @@ export class ExplorerView extends ViewPane implements IExplorerView { } try { + // We must expand the nest to have it be populated in the tree + if (item.nestedParent) { + await this.tree.expand(item.nestedParent); + } + if (reveal === true && this.tree.getRelativeTop(item) === null) { // Don't scroll to the item if it's already visible, or if set not to. this.tree.reveal(item, 0.5);