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

Function formatCodeActionKind

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

Source from the content-addressed store, hash-verified

48}
49
50function formatCodeActionKind(kind?: CodeActionKind): string {
51 if (!kind) return "";
52 return kind
53 .split(".")
54 .map((p) => p.charAt(0).toUpperCase() + p.slice(1))
55 .join(" › ");
56}
57
58function isCommand(item: CodeAction | Command): item is Command {
59 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected