MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getCodeActionIcon

Function getCodeActionIcon

src/cm/lsp/codeActions.ts:42–48  ·  view source on GitHub ↗
(kind?: CodeActionKind)

Source from the content-addressed store, hash-verified

40};
41
42function 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
50function formatCodeActionKind(kind?: CodeActionKind): string {
51 if (!kind) return "";

Callers 1

fetchCodeActionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected