fix inline edit error
This commit is contained in:
parent
c82fb7b41f
commit
a958bd9f39
@ -253,13 +253,15 @@ export const InlineEdit: React.FC<InlineEditProps> = ({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const originalContent = await plugin.app.vault.read(activeFile);
|
const oldContent = await plugin.app.vault.read(activeFile);
|
||||||
|
console.log(oldContent);
|
||||||
|
console.log(updatedContent);
|
||||||
await plugin.app.workspace.getLeaf(true).setViewState({
|
await plugin.app.workspace.getLeaf(true).setViewState({
|
||||||
type: APPLY_VIEW_TYPE,
|
type: APPLY_VIEW_TYPE,
|
||||||
active: true,
|
active: true,
|
||||||
state: {
|
state: {
|
||||||
file: activeFile,
|
file: activeFile,
|
||||||
originalContent: removeAITags(originalContent),
|
oldContent: removeAITags(oldContent),
|
||||||
newContent: removeAITags(updatedContent),
|
newContent: removeAITags(updatedContent),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user