Skip to content

Commit 48d4ba2

Browse files
authored
treeView.reveal with expand: 3 only expands the first level 3 folder (microsoft#182295)
Fixes microsoft#181889
1 parent 8a652f9 commit 48d4ba2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/vs/workbench/browser/parts/views/treeView.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -885,9 +885,9 @@ abstract class AbstractTreeView extends Disposable implements ITreeView {
885885
}
886886
try {
887887
itemOrItems = Array.isArray(itemOrItems) ? itemOrItems : [itemOrItems];
888-
await Promise.all(itemOrItems.map(element => {
889-
return tree.expand(element, false);
890-
}));
888+
for (const element of itemOrItems) {
889+
await tree.expand(element, false);
890+
}
891891
} catch (e) {
892892
// The extension could have changed the tree during the reveal.
893893
// Because of that, we ignore errors.

0 commit comments

Comments
 (0)