Structs§
- Drain
Batch Outcome - Standalone
Configure Maintenance - Tracks deferred configure work for the standalone NDJSON loop. The attached-
daemon (
subc) path schedules this work through its executor instead.
Constants§
- BREAKER_
TRIP_ THRESHOLD - LSP_
EVENT_ DRAIN_ BATCH_ CAP - MAX_
RETRY_ ATTEMPTS - WATCHER_
BATCH_ INLINE_ CAP - WATCHER_
DRAIN_ SLICE_ BUDGET - WATCHER_
PATH_ DRAIN_ BATCH_ CAP
Functions§
- any_
build_ in_ flight - Return true when any background build-completion receiver is currently set.
- drain_
build_ completions - Drain all background build-completion receivers in standalone order.
- drain_
callgraph_ store_ events - drain_
configure_ warning_ events - drain_
deferred_ configure_ maintenance - drain_
inspect_ events - drain_
lsp_ events - drain_
lsp_ events_ bounded - drain_
search_ index_ events - drain_
semantic_ index_ events - drain_
semantic_ refresh_ events - drain_
watcher_ events - Drain pre-filtered watcher events and apply cache invalidations on the dispatch thread. The watcher filter thread owns notify receive/decode, metadata filtering, ignore matching, root-deleted detection, and path coalescing; this drain only reacts to compact control events and surviving paths because the cache/index state below is not Send.
- drain_
watcher_ events_ bounded - mark_
semantic_ corpus_ refresh_ success - note_
configure_ maintenance_ yield - Report cooperative configure work displaced by already-buffered requests. Bursty clients may trigger many unit boundaries, so emit at most once per five seconds while preserving the queued count from the observed boundary.
- record_
semantic_ refresh_ transient_ failure - refresh_
callgraph_ store_ for_ watcher - refresh_
corpus_ after_ ignore_ change - refresh_
project_ after_ watcher_ rescan - refresh_
project_ corpus - schedule_
semantic_ refresh_ retry - semantic_
corpus_ refresh_ in_ progress - semantic_
refresh_ circuit_ is_ open - shutdown_
idle_ lsp - Shut down language servers for a standalone runtime whose last request is
older than
idle.lsp_ttl_minutes. Subc uses the same helper with its own per-root activity stamp. - shutdown_
idle_ lsp_ at - spawn_
search_ corpus_ refresh - spawn_
standalone_ log_ maintenance - Keep shared log-retention I/O off the standalone request loop. The logging module retains its hourly sweep cadence; this coarser gate avoids spawning a no-op thread on every 250 ms idle tick.
- watcher_
path_ is_ callgraph_ indexed - A file the callgraph STORE would have indexed at cold-build time. The store
indexes every file
walk_project_filesyields (i.e. any detected language), not just the trigramSOURCE_EXTENSIONSset. Gating the store’s watcher refresh on the narrower trigram set left edits to Java/C/C++/C#/Kotlin/Ruby/ PHP/… (all of which the store extracts calls for) serving stale results until a full rebuild. Mirror cold-build exactly so refresh coverage == index coverage. - watcher_
path_ is_ ignored_ by_ current_ matcher - watcher_
path_ is_ semantic_ source - watcher_
path_ is_ source - watcher_
path_ is_ tsconfig - A
tsconfig.json/jsconfig.json(including variant names liketsconfig.base.json). A change to any of these can shift TypeScript build membership (which filestscchecks), so the status-bar membership cache must be invalidated. Deliberately broad on the variant suffix and ignorant ofextendsgraphs: the cache is cleared wholesale on a match, and base configs almost always follow thetsconfig*.jsonnaming. Non-standard base names are covered on the nexttsconfig.jsonchange orconfigure.