mirror of
https://github.com/Darkrock-Studios/hammer-editor.git
synced 2026-08-26 01:41:41 +00:00
EncyclopediaRepository gains a typed entryChangeFlow (Saved/Deleted/ReId) emitted alongside the existing Unit flow, carrying the persisted EntryContent so consumers need no disk read. Suspending emit semantics: cache-keeping consumers must never miss an event; with no subscribers (temporary sync scopes) emits complete immediately. ProjectDictionaryService now reads the encyclopedia once at initialize to seed a per-entry token map, then updates single entries straight from event payloads. Previously every entry save re-walked the directory and TOML-decoded every entry. The union flows through a StateFlow into the debounced push/clear gate, so the cache stays warm while the feature is toggled off and re-enabling needs no disk. |
||
|---|---|---|
| .. | ||
| src | ||
| build.gradle.kts | ||