Skip to content

Commit a244a9d

Browse files
authored
Fix a bad search/replace when moving tools into their own files (#2815)
1 parent b955dbc commit a244a9d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/core/tools/applyDiffTool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export async function applyDiffTool(
193193
)}\n</final_file_content>\n\n` +
194194
`Please note:\n` +
195195
`1. You do not need to re-write the file with these changes, as they have already been applied.\n` +
196-
`2. Proceed with the task using cline updated file content as the new baseline.\n` +
196+
`2. Proceed with the task using this updated file content as the new baseline.\n` +
197197
`3. If the user's edits have addressed part of the task or changed the requirements, adjust your approach accordingly.` +
198198
`${newProblemsMessage}`,
199199
)

src/core/tools/insertContentTool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export async function insertContentTool(
158158
`<final_file_content path="${relPath.toPosix()}">\n${finalContent}\n</final_file_content>\n\n` +
159159
`Please note:\n` +
160160
`1. You do not need to re-write the file with these changes, as they have already been applied.\n` +
161-
`2. Proceed with the task using cline updated file content as the new baseline.\n` +
161+
`2. Proceed with the task using this updated file content as the new baseline.\n` +
162162
`3. If the user's edits have addressed part of the task or changed the requirements, adjust your approach accordingly.` +
163163
`${newProblemsMessage}`,
164164
)

src/core/tools/searchAndReplaceTool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export async function searchAndReplaceTool(
170170
`<final_file_content path="${relPath.toPosix()}">\n${addLineNumbers(finalContent || "")}\n</final_file_content>\n\n` +
171171
`Please note:\n` +
172172
`1. You do not need to re-write the file with these changes, as they have already been applied.\n` +
173-
`2. Proceed with the task using cline updated file content as the new baseline.\n` +
173+
`2. Proceed with the task using this updated file content as the new baseline.\n` +
174174
`3. If the user's edits have addressed part of the task or changed the requirements, adjust your approach accordingly.` +
175175
`${newProblemsMessage}`,
176176
)

src/core/tools/writeToFileTool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ export async function writeToFileTool(
212212
)}\n</final_file_content>\n\n` +
213213
`Please note:\n` +
214214
`1. You do not need to re-write the file with these changes, as they have already been applied.\n` +
215-
`2. Proceed with the task using cline updated file content as the new baseline.\n` +
215+
`2. Proceed with the task using this updated file content as the new baseline.\n` +
216216
`3. If the user's edits have addressed part of the task or changed the requirements, adjust your approach accordingly.` +
217217
`${newProblemsMessage}`,
218218
)

0 commit comments

Comments
 (0)