From 3ee34f742252119625e1f8149ebdd464f13a0d31 Mon Sep 17 00:00:00 2001 From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Date: Mon, 16 Dec 2024 15:30:06 -0800 Subject: [PATCH] Fixes --- src/core/assistant-message/diff.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/core/assistant-message/diff.ts b/src/core/assistant-message/diff.ts index 0c9b197aa1..90d734c31b 100644 --- a/src/core/assistant-message/diff.ts +++ b/src/core/assistant-message/diff.ts @@ -171,9 +171,7 @@ export async function constructNewFileContent( if (exactIndex !== -1) { searchMatchIndex = exactIndex searchEndIndex = exactIndex + currentSearchContent.length - console.log("Exact match found", searchMatchIndex, searchEndIndex) } else { - console.log("No exact match found, trying fallback line-trimmed matching") // Attempt fallback line-trimmed matching const fallbackMatch = lineTrimmedFallbackMatch( originalContent, @@ -182,7 +180,6 @@ export async function constructNewFileContent( ) if (fallbackMatch) { ;[searchMatchIndex, searchEndIndex] = fallbackMatch - console.log("Fallback line-trimmed match found", searchMatchIndex, searchEndIndex) } else { throw new Error( `The SEARCH block:\n${currentSearchContent.trimEnd()}\n...does not match anything in the file.`,