|
|
@@ -368,18 +368,20 @@ Only use a single line of '=======' between search and replacement content, beca
|
|
|
getProgressStatus(toolUse: ToolUse, result?: DiffResult): ToolProgressStatus {
|
|
|
const diffContent = toolUse.params.diff
|
|
|
if (diffContent) {
|
|
|
+ const icon = "diff-multiple"
|
|
|
+ const searchBlockCount = (diffContent.match(/SEARCH/g) || []).length
|
|
|
if (toolUse.partial) {
|
|
|
if (diffContent.length < 1000 || (diffContent.length / 50) % 10 === 0) {
|
|
|
- return { text: `progressing ${(diffContent.match(/SEARCH/g) || []).length} blocks...` }
|
|
|
+ return { icon, text: `${searchBlockCount}` }
|
|
|
}
|
|
|
} else if (result) {
|
|
|
- const searchBlockCount = (diffContent.match(/SEARCH/g) || []).length
|
|
|
- if (result.failParts) {
|
|
|
+ if (result.failParts?.length) {
|
|
|
return {
|
|
|
- text: `progressed ${searchBlockCount - result.failParts.length}/${searchBlockCount} blocks.`,
|
|
|
+ icon,
|
|
|
+ text: `${searchBlockCount - result.failParts.length}/${searchBlockCount}`,
|
|
|
}
|
|
|
} else {
|
|
|
- return { text: `progressed ${searchBlockCount} blocks.` }
|
|
|
+ return { icon, text: `${searchBlockCount}` }
|
|
|
}
|
|
|
}
|
|
|
}
|