* deduplicatearray tests * break out separate retrieval pipelines * IConfigHandler * tests for codebase indexer * better .continueignore for continue * indexing fixes * ignore .gitignore and .continueignore when indexing * retrieval pipeline improvements
12 lines
317 B
TypeScript
12 lines
317 B
TypeScript
import { Chunk } from "../..";
|
|
import { deduplicateArray } from "../../util";
|
|
|
|
export function deduplicateChunks(chunks: Chunk[]): Chunk[] {
|
|
return deduplicateArray(chunks, (a, b) => {
|
|
return (
|
|
a.filepath === b.filepath &&
|
|
a.startLine === b.startLine &&
|
|
a.endLine === b.endLine
|
|
);
|
|
});
|
|
}
|