( text: string, line: number, character: number, scopes?: ScopeEntry[], taskEntries?: TaskEntry[] )
| 16 | ]; |
| 17 | |
| 18 | function 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 | |
| 31 | describe("completion logic", () => { |
| 32 | const doc = `--- |
no test coverage detected