This commit is contained in:
Nate Sesti 2024-07-25 17:27:06 -07:00
commit 6611d8a6e7

View file

@ -114,24 +114,6 @@ export class ChunkCodebaseIndex implements CodebaseIndex {
handleChunk(chunk);
}
accumulatedProgress =
(i / results.compute.length) * (1 - progressReservedForTagging);
yield {
progress: accumulatedProgress,
desc: `Chunking ${getBasename(item.path)}`,
status: "indexing",
};
markComplete([item], IndexResultType.Compute);
// Insert chunks
for await (const chunk of chunkDocument(
item.path,
contents[i],
this.maxChunkSize,
item.cacheKey,
)) {
handleChunk(chunk);
}
accumulatedProgress =
(i / results.compute.length) * (1 - progressReservedForTagging);
yield {