(pluginId: string)
| 139 | * the user's yes/no response — show-once semantics. |
| 140 | */ |
| 141 | export function markHintPluginShown(pluginId: string): void { |
| 142 | saveGlobalConfig(current => { |
| 143 | const existing = current.claudeCodeHints?.plugin ?? [] |
| 144 | if (existing.includes(pluginId)) return current |
| 145 | return { |
| 146 | ...current, |
| 147 | claudeCodeHints: { |
| 148 | ...current.claudeCodeHints, |
| 149 | plugin: [...existing, pluginId], |
| 150 | }, |
| 151 | } |
| 152 | }) |
| 153 | } |
| 154 | |
| 155 | /** Called when the user picks "don't show plugin installation hints again". */ |
| 156 | export function disableHintRecommendations(): void { |
no test coverage detected