()
| 349 | * - User has ignored MAX_IGNORED_COUNT recommendations |
| 350 | */ |
| 351 | export function isLspRecommendationsDisabled(): boolean { |
| 352 | const config = getGlobalConfig() |
| 353 | return ( |
| 354 | config.lspRecommendationDisabled === true || |
| 355 | (config.lspRecommendationIgnoredCount ?? 0) >= MAX_IGNORED_COUNT |
| 356 | ) |
| 357 | } |
| 358 | |
| 359 | /** |
| 360 | * Reset the ignored count (useful if user re-enables recommendations) |
no test coverage detected