diff options
| author | Bozhidar Batsov <bozhidar@toptal.com> | 2026-04-27 07:58:28 +0000 |
|---|---|---|
| committer | Bozhidar Batsov <bozhidar@toptal.com> | 2026-04-27 07:58:28 +0000 |
| commit | 28014dae7034fff49f5740b013a426aade7873f3 (patch) | |
| tree | 5943605789c290b9dbe927520f5cc52527866b58 /test/projectile-legacy-test.el | |
| parent | d8bbeedd275cea4765555c731b265ce7757ad9e5 (diff) | |
Each call to `projectile-cache-current-file' under persistent caching
scheduled a fresh 30-second idle timer that closed over a snapshot of
the file list at scheduling time. Opening N files in a session
queued N timers; once Emacs went idle they all fired and serialized
the cache N times, with the earlier ones writing stale (shorter)
lists.
Maintain a per-project pending timer in
`projectile--pending-cache-flush-timers' instead, cancelling and
rescheduling on each new file. The fired callback re-reads the
current in-memory cache, so the disk write reflects the final state
rather than whichever snapshot the last timer captured.
Diffstat (limited to 'test/projectile-legacy-test.el')
0 files changed, 0 insertions, 0 deletions
