MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / rememberOwnWrite

Function rememberOwnWrite

apps/desktop/src/main/app-config.ts:524–531  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

522const ownWrites = new Set<string>()
523const MAX_OWN_WRITES = 16
524function rememberOwnWrite(text: string): void {
525 ownWrites.add(text)
526 while (ownWrites.size > MAX_OWN_WRITES) {
527 const oldest = ownWrites.values().next().value
528 if (oldest === undefined) break
529 ownWrites.delete(oldest)
530 }
531}
532
533const WATCH_DEBOUNCE_MS = 150
534

Callers 2

initAppConfigFunction · 0.85
setPortableConfigFunction · 0.85

Calls 1

deleteMethod · 0.80

Tested by

no test coverage detected