Skip to content

Add autoReveal option to focus tree item of active editor#137

Merged
letmaik merged 1 commit intomasterfrom
auto-reveal
Apr 19, 2026
Merged

Add autoReveal option to focus tree item of active editor#137
letmaik merged 1 commit intomasterfrom
auto-reveal

Conversation

@letmaik
Copy link
Copy Markdown
Owner

@letmaik letmaik commented Apr 19, 2026

When enabled (default), the tree view automatically reveals and selects the item corresponding to the currently active editor.

Internally, parent-child relationships and file elements are now cached in maps populated during getChildren(), making both getParent() and the active editor lookup simple map lookups. Maps are cleared on every tree data change via a new fireTreeDataChange() helper.

Closes #135.

When enabled (default), the tree view automatically reveals and selects
the item corresponding to the currently active editor.

Internally, parent-child relationships and file elements are now cached
in maps populated during getChildren(), making both getParent() and
the active editor lookup simple map lookups. Maps are cleared on every
tree data change via a new fireTreeDataChange() helper.

Co-authored-by: Copilot <copilot@github.com>
@letmaik letmaik merged commit d8a2ffd into master Apr 19, 2026
2 checks passed
@letmaik letmaik deleted the auto-reveal branch April 19, 2026 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Focus on current opened file in panel

1 participant