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
Browse filesBrowse the repository at this point in the historyBrowse files
Test
committed
fix(refDetailsCache): normalize ref hashes and batch Memento writes
getAllRefListExtended emitted %(objectname:short) (7 chars) while
VscodeGitProvider.mapRef stored the full 40-char SHA, so the cache's
hash-equality check compared different-length hashes for the same
commit and every fast-path lookup missed. Normalize the format string
to %(objectname), add a defensive prefix-aware hash comparison to
tolerate stale short-SHA entries already persisted, and truncate to 7
chars only at the two QuickPick-description render sites that wanted
a compact hash.
Also rework upsertFromRefs to read Memento state once, apply all
upserts in memory, and write once instead of once per ref — avoiding
O(N) full-state read-modify-write cycles on activation for large
repos.
Closes#211
0 commit comments