MCPcopy Create free account
hub / github.com/driangle/taskmd / getResult

Function getResult

apps/vscode/test/completion.test.ts:18–29  ·  view source on GitHub ↗
(
  text: string,
  line: number,
  character: number,
  scopes?: ScopeEntry[],
  taskEntries?: TaskEntry[]
)

Source from the content-addressed store, hash-verified

16];
17
18function getResult(
19 text: string,
20 line: number,
21 character: number,
22 scopes?: ScopeEntry[],
23 taskEntries?: TaskEntry[]
24) {
25 const bounds = findFrontmatterBounds(text);
26 if (!bounds) return undefined;
27 const lines = text.split("\n");
28 return resolveCompletions(lines, line, character, bounds.startLine, bounds.endLine, scopes, taskEntries);
29}
30
31describe("completion logic", () => {
32 const doc = `---

Callers 1

completion.test.tsFile · 0.85

Calls 2

findFrontmatterBoundsFunction · 0.90
resolveCompletionsFunction · 0.90

Tested by

no test coverage detected