Refactor applyDiff method to return a Promise and add logging for diff results

This commit is contained in:
Daniel Riccio
2025-01-07 18:57:40 -05:00
parent 6bcde01778
commit 4356cffb0d
2 changed files with 4 additions and 3 deletions

View File

@@ -28,5 +28,5 @@ export interface DiffStrategy {
* @param endLine Optional line number where the search block ends. If not provided, searches the entire file.
* @returns A DiffResult object containing either the successful result or error details
*/
applyDiff(originalContent: string, diffContent: string, startLine?: number, endLine?: number): DiffResult
}
applyDiff(originalContent: string, diffContent: string, startLine?: number, endLine?: number): Promise<DiffResult>
}