MCPcopy Create free account
hub / github.com/freecodexyz/free-code / resetIgnoredCount

Function resetIgnoredCount

src/utils/plugins/lspRecommendation.ts:362–374  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

360 * Reset the ignored count (useful if user re-enables recommendations)
361 */
362export function resetIgnoredCount(): void {
363 saveGlobalConfig(currentConfig => {
364 const currentCount = currentConfig.lspRecommendationIgnoredCount ?? 0
365 if (currentCount === 0) {
366 return currentConfig
367 }
368 return {
369 ...currentConfig,
370 lspRecommendationIgnoredCount: 0,
371 }
372 })
373 logForDebugging('[lspRecommendation] Reset ignored count')
374}

Callers

nothing calls this directly

Calls 2

saveGlobalConfigFunction · 0.85
logForDebuggingFunction · 0.85

Tested by

no test coverage detected