()
| 332 | * After MAX_IGNORED_COUNT ignores, recommendations are disabled. |
| 333 | */ |
| 334 | export function incrementIgnoredCount(): void { |
| 335 | saveGlobalConfig(currentConfig => { |
| 336 | const newCount = (currentConfig.lspRecommendationIgnoredCount ?? 0) + 1 |
| 337 | return { |
| 338 | ...currentConfig, |
| 339 | lspRecommendationIgnoredCount: newCount, |
| 340 | } |
| 341 | }) |
| 342 | logForDebugging('[lspRecommendation] Incremented ignored count') |
| 343 | } |
| 344 | |
| 345 | /** |
| 346 | * Check if LSP recommendations are disabled. |
no test coverage detected