Skip to content

fix(file-history): ensure file items not truncated by slice limit#46

Merged
grimmerk merged 1 commit intodevelopfrom
claude/loving-leakey
Mar 8, 2026
Merged

fix(file-history): ensure file items not truncated by slice limit#46
grimmerk merged 1 commit intodevelopfrom
claude/loving-leakey

Conversation

@grimmerk
Copy link
Copy Markdown
Owner

@grimmerk grimmerk commented Mar 8, 2026

Summary

  • Fix file history items not appearing in the switcher list
  • Root cause: VS Code's SQLite stores folder entries before file entries. The previous .slice(0, 100) truncated all fileUri entries when there were 100+ folders
  • Solution: Split into separate slices — folders/workspaces (max 100) and files (max 50) — then combine, ensuring file items always appear at the bottom of the list

Test plan

  • yarn start and verify both folder and file items appear in the switcher
  • Confirm file items are listed after folder/workspace items
  • yarn make and verify the packaged app shows file items

🤖 On behalf of @grimmerk — generated with Claude Code

VS Code SQLite stores folders before files. The previous
.slice(0, 100) cut off all fileUri entries when there were
100+ folders. Split into separate slices: folders/workspaces
(max 100) and files (max 50).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@grimmerk grimmerk changed the base branch from main to develop March 8, 2026 17:22
@grimmerk grimmerk merged commit a5ad85f into develop Mar 8, 2026
1 check 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.

1 participant