(kind?: CodeActionKind)
| 40 | }; |
| 41 | |
| 42 | function getCodeActionIcon(kind?: CodeActionKind): string { |
| 43 | if (!kind) return "icon zap"; |
| 44 | for (const [prefix, icon] of Object.entries(CODE_ACTION_ICONS)) { |
| 45 | if (kind.startsWith(prefix)) return icon; |
| 46 | } |
| 47 | return "icon zap"; |
| 48 | } |
| 49 | |
| 50 | function formatCodeActionKind(kind?: CodeActionKind): string { |
| 51 | if (!kind) return ""; |