mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-14 16:10:59 -07:00
Drop threshold.
This commit is contained in:
@@ -332,10 +332,10 @@ class GrepToolInvocation extends BaseToolInvocation<
|
||||
|
||||
for (const match of fileMatches) {
|
||||
if (fileLines) {
|
||||
const startLine = Math.max(0, match.lineNumber - 1 - 50);
|
||||
const startLine = Math.max(0, match.lineNumber - 1 - 15);
|
||||
const endLine = Math.min(
|
||||
fileLines.length,
|
||||
match.lineNumber - 1 + 50 + 1,
|
||||
match.lineNumber - 1 + 15 + 1,
|
||||
);
|
||||
const contextLines = fileLines.slice(startLine, endLine);
|
||||
|
||||
|
||||
@@ -340,10 +340,10 @@ class GrepToolInvocation extends BaseToolInvocation<
|
||||
const newFileMatches: GrepMatch[] = [];
|
||||
const seenLines = new Set<number>();
|
||||
for (const match of fileMatches) {
|
||||
const startLine = Math.max(0, match.lineNumber - 1 - 50);
|
||||
const startLine = Math.max(0, match.lineNumber - 1 - 15);
|
||||
const endLine = Math.min(
|
||||
fileLines.length,
|
||||
match.lineNumber - 1 + 50 + 1,
|
||||
match.lineNumber - 1 + 15 + 1,
|
||||
);
|
||||
for (let i = startLine; i < endLine; i++) {
|
||||
if (!seenLines.has(i + 1)) {
|
||||
|
||||
Reference in New Issue
Block a user