diff --git a/core/autocomplete/context/root-path-context/RootPathContextService.ts b/core/autocomplete/context/root-path-context/RootPathContextService.ts index fa1750f97..c12a22d9d 100644 --- a/core/autocomplete/context/root-path-context/RootPathContextService.ts +++ b/core/autocomplete/context/root-path-context/RootPathContextService.ts @@ -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 { - 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; } diff --git a/core/autocomplete/context/root-path-context/test/testUtils.ts b/core/autocomplete/context/root-path-context/test/testUtils.ts index bdd6138d4..9526cacdb 100644 --- a/core/autocomplete/context/root-path-context/test/testUtils.ts +++ b/core/autocomplete/context/root-path-context/test/testUtils.ts @@ -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) {