MCPcopy Index your code
hub / github.com/continuedev/continue / shouldRejectDiff

Function shouldRejectDiff

core/edit/lazy/deterministic.ts:102–108  ·  view source on GitHub ↗
(diff: DiffLine[])

Source from the content-addressed store, hash-verified

100
101const REMOVAL_PERCENTAGE_THRESHOLD = 0.3;
102function shouldRejectDiff(diff: DiffLine[]): boolean {
103 const numRemovals = diff.filter((line) => line.type === "old").length;
104 if (numRemovals / diff.length > REMOVAL_PERCENTAGE_THRESHOLD) {
105 return true;
106 }
107 return false;
108}
109
110function nodeSurroundedInLazyBlocks(
111 parser: Parser,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected