MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / debouncedRecomputeSystemTheme

Function debouncedRecomputeSystemTheme

cli/src/utils/theme-system.ts:1152–1160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1150 * Prevents excessive recomputations when files change rapidly
1151 */
1152const debouncedRecomputeSystemTheme = () => {
1153 if (pendingRecomputeTimer) {
1154 clearTimeout(pendingRecomputeTimer)
1155 }
1156 pendingRecomputeTimer = setTimeout(() => {
1157 pendingRecomputeTimer = null
1158 recomputeSystemTheme()
1159 }, FILE_WATCHER_DEBOUNCE_MS)
1160}
1161
1162let lastDetectedTheme: ThemeName | null = null
1163export function setLastDetectedTheme(theme: ThemeName) {

Callers 1

setupFileWatchersFunction · 0.85

Calls 2

setTimeoutFunction · 0.85
recomputeSystemThemeFunction · 0.85

Tested by

no test coverage detected