Skip to content

fix(web-ui): avoid recursive reload after lazy file tree load#311

Merged
GCWing merged 2 commits intoGCWing:mainfrom
wgqqqqq:fix/file-tree-lazy-reload
Mar 30, 2026
Merged

fix(web-ui): avoid recursive reload after lazy file tree load#311
GCWing merged 2 commits intoGCWing:mainfrom
wgqqqqq:fix/file-tree-lazy-reload

Conversation

@wgqqqqq
Copy link
Copy Markdown
Collaborator

@wgqqqqq wgqqqqq commented Mar 30, 2026

Summary

  • stop the file tree hook from triggering a full recursive reload immediately after a lazy root load succeeds
  • only auto-reload when relevant file tree options actually change, and keep that reload in lazy mode when lazy loading is enabled
  • preserve existing manual refresh, folder expansion, watcher refresh, and polling behavior

Problem

Opening a very large repository such as llvm-project could leave the Files panel stuck on loading because the initial lazy load was followed by an unconditional full recursive tree load.

Verification

  • pnpm run build:web

@GCWing GCWing merged commit 12f4626 into GCWing:main Mar 30, 2026
4 checks passed
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.

2 participants