Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
Respect auto reveal option when showing files from gems
Browse files Browse the repository at this point in the history
  • Loading branch information
vinistock committed Feb 13, 2024
1 parent a19ad8d commit 7740bcb
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/dependenciesTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,17 @@ export class DependenciesTree
}

private revealElement(element: BundlerTreeNode): void {
this.treeView.reveal(element, {
select: true,
focus: false,
expand: true,
});
const autoReveal: boolean | undefined = vscode.workspace
.getConfiguration("explorer")
.get("autoReveal");

if (autoReveal) {
this.treeView.reveal(element, {
select: true,
focus: false,
expand: true,
});
}

this.currentVisibleItem = undefined;
}
Expand Down

0 comments on commit 7740bcb

Please sign in to comment.