MCPcopy Create free account
hub / github.com/codeaashu/claude-code / addToNeverSuggest

Function addToNeverSuggest

src/utils/plugins/lspRecommendation.ts:316–328  ·  view source on GitHub ↗
(pluginId: string)

Source from the content-addressed store, hash-verified

314 * @param pluginId - Plugin ID to never suggest again
315 */
316export 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.

Callers 1

Calls 2

saveGlobalConfigFunction · 0.85
logForDebuggingFunction · 0.85

Tested by

no test coverage detected