You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Parent folder checkbox not auto-checked when all children are marked as viewed #8584
After the change in #8527 (manageCheckboxStateManually: true), when all child files in a folder are individually marked as viewed, the parent folder's checkbox does not automatically become checked.
Steps to reproduce
Open a PR with files nested in folders (e.g., src/ containing multiple files)
Check each child file individually as "viewed"
Once all children are checked, observe that the parent folder checkbox remains unchecked
Expected behavior
Parent folder checkbox becomes checked when all children are checked (as it did before #8527).
Actual behavior
Parent folder checkbox stays unchecked despite all children being checked.
Environment
VS Code: 1.111.0
Extension: v0.132.0
OS: macOS 15.6
Analysis
The code in DirectoryTreeNode.getTreeItem() correctly computes the parent state via allChildrenViewed(), and refresh() is called on the topmost directory after checkbox changes. However, it seems that with manageCheckboxStateManually: true, the checkbox state update via refresh() → getTreeItem() may not be reflected in the UI by VS Code.
This may be a VS Code TreeView API limitation where checkboxState changes returned from getTreeItem() during a refresh() are not applied when manageCheckboxStateManually: true.
Reacted by tgrandgent, Luis Aceituno, Mostafa ElAwady, Brendan J and Sergey Shevchenko
Activity
nvt261991-sys commentedon Mar 18, 2026
#8527
tgrandgent commentedon Mar 20, 2026
This is a significant productivity drain when reviewing large PRs with many changed files. I hope it will be fixed ASAP.
alexr00 commentedon Apr 1, 2026
I'm having trouble reproducing this. Do you have a specific public PR it happens with that I could check?
goncalo-fabric commentedon May 4, 2026
This issue is still happening to me.
VS Code info
Extension info
Example 👇 The "filters" parent folder should be checked automatically.
Eiji-Kudo commentedon May 6, 2026
Alex Ross (@alexr00) Thank you so much for working on this!
On my side the parent folder checkbox auto-check still wasn't working even on the latest 0.142.0.
Applying #8679 on top of main fixed it for me. Short video of it working with the patch:
Screen.Recording.2026-05-06.at.19.29.55.mov
I also left a confirmation comment on the PR: #8679 (comment)
Would really appreciate if #8679 could be reviewed and merged.
alexr00 commentedon May 6, 2026
Eiji (@Eiji-Kudo) thank you for testing it and thanks for the nudges. I will merge the PR.
goncalo-fabric commentedon May 12, 2026
I still have the error.
If I click the "Refresh" button, it automatically checks the parent, though.
--
BTW, if I use this button to mark a file as viewed, the parent folder is automatically checked
alexr00 commentedon May 12, 2026
The new fix is not yet in the stable release. It should be available in the next day.