effect(patch,tool): migrate patch/index and tool/read to AppFileSystem (#27155)
This commit is contained in:
@@ -119,7 +119,7 @@ export const ApplyPatchTool = Tool.define(
|
||||
|
||||
// Apply the update chunks to get new content
|
||||
try {
|
||||
const fileUpdate = Patch.deriveNewContentsFromChunks(filePath, hunk.chunks)
|
||||
const fileUpdate = Patch.deriveNewContentsFromChunks(filePath, hunk.chunks, Bom.join(source.text, source.bom))
|
||||
newContent = fileUpdate.content
|
||||
bom = fileUpdate.bom
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user