(pluginId: string)
| 314 | * @param pluginId - Plugin ID to never suggest again |
| 315 | */ |
| 316 | export function addToNeverSuggest(pluginId: string): void { |
| 317 | saveGlobalConfig(currentConfig => { |
| 318 | const current = currentConfig.lspRecommendationNeverPlugins ?? [] |
| 319 | if (current.includes(pluginId)) { |
| 320 | return currentConfig |
| 321 | } |
| 322 | return { |
| 323 | ...currentConfig, |
| 324 | lspRecommendationNeverPlugins: [...current, pluginId], |
| 325 | } |
| 326 | }) |
| 327 | logForDebugging(`[lspRecommendation] Added ${pluginId} to never suggest`) |
| 328 | } |
| 329 | |
| 330 | /** |
| 331 | * Increment the ignored recommendation count. |
no test coverage detected