You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constformattedError=`File does not exist at path: ${absolutePath}\n\n<error_details>\nThe specified file could not be found. Please verify the file path and try again.\n</error_details>`
1618
-
awaitthis.say("error",formattedError)
1619
-
pushToolResult(formattedError)
1620
-
break
1621
-
}
1622
-
1623
-
letparsedOperations: Array<{
1624
-
search: string
1625
-
replace: string
1626
-
start_line?: number
1627
-
end_line?: number
1628
-
use_regex?: boolean
1629
-
ignore_case?: boolean
1630
-
regex_flags?: string
1631
-
}>
1632
-
1633
-
try{
1634
-
parsedOperations=JSON.parse(operations)
1635
-
if(!Array.isArray(parsedOperations)){
1636
-
thrownewError("Operations must be an array")
1637
-
}
1638
-
}catch(error){
1639
-
this.consecutiveMistakeCount++
1640
-
awaitthis.say("error",`Failed to parse operations JSON: ${error.message}`)
`The user made the following updates to your content:\n\n${userEdits}\n\n`+
1723
-
`The updated content, which includes both your original modifications and the user's edits, has been successfully saved to ${relPath.toPosix()}. Here is the full, updated content of the file, including line numbers:\n\n`+
constformattedError=`File does not exist at path: ${absolutePath}\n\n<error_details>\nThe specified file could not be found. Please verify the file path and try again.\n</error_details>`
54
+
awaitcline.say("error",formattedError)
55
+
pushToolResult(formattedError)
56
+
return
57
+
}
58
+
59
+
letparsedOperations: Array<{
60
+
search: string
61
+
replace: string
62
+
start_line?: number
63
+
end_line?: number
64
+
use_regex?: boolean
65
+
ignore_case?: boolean
66
+
regex_flags?: string
67
+
}>
68
+
69
+
try{
70
+
parsedOperations=JSON.parse(operations)
71
+
if(!Array.isArray(parsedOperations)){
72
+
thrownewError("Operations must be an array")
73
+
}
74
+
}catch(error){
75
+
cline.consecutiveMistakeCount++
76
+
awaitcline.say("error",`Failed to parse operations JSON: ${error.message}`)
`The user made the following updates to your content:\n\n${userEdits}\n\n`+
158
+
`The updated content, which includes both your original modifications and the user's edits, has been successfully saved to ${relPath.toPosix()}. Here is the full, updated content of the file, including line numbers:\n\n`+
0 commit comments