fix: cursor position
This commit is contained in:
parent
f60009c2ea
commit
6284eeebef
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ export async function testRootPathContext(
|
|||
throw new Error("AST is undefined");
|
||||
}
|
||||
|
||||
const treePath = await getTreePathAtCursor(ast, rangeToFill.start.character);
|
||||
const treePath = await getTreePathAtCursor(ast, prefix.length);
|
||||
const snippets = await service.getContextForPath(startPath, treePath);
|
||||
|
||||
expectedSnippets.forEach((expectedSnippet) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue