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

Function isCommand

src/cm/lsp/codeActions.ts:58–62  ·  view source on GitHub ↗
(item: CodeAction | Command)

Source from the content-addressed store, hash-verified

56}
57
58function isCommand(item: CodeAction | Command): item is Command {
59 return (
60 "command" in item && typeof item.command === "string" && !("edit" in item)
61 );
62}
63
64function lspPositionToOffset(
65 doc: { line: (n: number) => { from: number } },

Callers 2

fetchCodeActionsFunction · 0.85
executeCodeActionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected