update edit aply file content

This commit is contained in:
duanfuxiang
2025-04-01 11:41:29 +08:00
parent c415175de8
commit 4fb0bb22ac
5 changed files with 54 additions and 50 deletions

View File

@@ -241,8 +241,7 @@ export const InlineEdit: React.FC<InlineEditProps> = ({
const endLine = parsedBlock?.endLine || defaultEndLine;
const updatedContent = await ApplyEditToFile(
activeFile,
await plugin.app.vault.read(activeFile),
await plugin.app.vault.cachedRead(activeFile),
finalContent,
startLine,
endLine