This commit is contained in:
tomasz-io 2024-11-12 11:10:33 -08:00
parent 7a0234215a
commit a2a0c5a991
2 changed files with 1 additions and 5 deletions

View file

@ -58,15 +58,12 @@ export class RootPathContextService {
this.importDefinitionsService.get(filepath);
break;
default:
const type = node.type;
debugger;
query = await getQueryForFile(
filepath,
`root-path-context-queries/${node.type}`,
);
break;
}
debugger;
if (!query) {
return snippets;
@ -89,7 +86,6 @@ export class RootPathContextService {
filepath: string,
endPosition: Parser.Point,
): Promise<AutocompleteSnippet[]> {
debugger;
const definitions = await this.ide.gotoDefinition({
filepath,
position: {
@ -103,6 +99,7 @@ export class RootPathContextService {
contents: await this.ide.readRangeInFile(def.filepath, def.range),
})),
);
debugger;
return newSnippets;
}

View file

@ -66,7 +66,6 @@ export async function testRootPathContext(
fs.readFileSync(startPath, "utf8"),
position,
);
debugger;
const fileContents = prefix + suffix;
const ast = await getAst(startPath, fileContents);
if (!ast) {