(filePath: string, edits: FileEdit[])
| 159 | } |
| 160 | } |
| 161 | function diffToolInputsOnly(filePath: string, edits: FileEdit[]): DiffData { |
| 162 | return { |
| 163 | patch: edits.flatMap(e => getPatchForDisplay({ |
| 164 | filePath, |
| 165 | fileContents: e.old_string, |
| 166 | edits: [e] |
| 167 | })), |
| 168 | firstLine: null, |
| 169 | fileContent: undefined |
| 170 | }; |
| 171 | } |
| 172 | function normalizeEdit(fileContent: string, edit: FileEdit): FileEdit { |
| 173 | const actualOld = findActualString(fileContent, edit.old_string) || edit.old_string; |
| 174 | const actualNew = preserveQuoteStyle(edit.old_string, actualOld, edit.new_string); |
no test coverage detected