Skip to content

fix(explorer): preserve collapsed folders on refresh - #62

Merged
kbuffardi merged 2 commits into
mainfrom
fix/explorer-collapsed-refresh
Aug 6, 2026
Merged

fix(explorer): preserve collapsed folders on refresh#62
kbuffardi merged 2 commits into
mainfrom
fix/explorer-collapsed-refresh

Conversation

@kbuffardi

Copy link
Copy Markdown
Owner

Summary

Keep Explorer directory expansion state user-driven when workspace snapshots refresh. External filesystem changes, polling, compiler artifacts, and runtime fstream output now leave the current collapsed/expanded tree unchanged.

The Explorer New File action remains the explicit exception: it expands the new file's ancestor folders so the file is visible immediately.

Why

Refresh handling previously treated every added path as a reveal target, so unrelated updates could expand nested folders the user had left collapsed.

Validation

  • node --experimental-detect-module --test scripts/e2e-workspace-file-tracking.test.mjs
  • npm run lint
  • npm run build
  • npm run test:e2e

The build completed with its existing webpack bundle-size warnings.

Closes #61

Keep directory expansion state user-driven across workspace refreshes.\nOnly Explorer New File reveals the created path's ancestors.\n\nFixes #61
@kbuffardi
kbuffardi marked this pull request as ready for review August 6, 2026 03:21
@kbuffardi
kbuffardi merged commit 939da0c into main Aug 6, 2026
2 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.

fix(explorer): preserve collapsed folders across external refreshes

1 participant