Skip to content

Commit 8d7aaa7

Browse files
committed
enhance(apis): add setFileContent method for built-in file paths
1 parent 6c1b9fe commit 8d7aaa7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

libs/src/LSPlugin.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -871,6 +871,13 @@ export interface IEditorProxy extends Record<string, any> {
871871
end: number
872872
text: string
873873
}>
874+
875+
/**
876+
* For built-in files path `logseq/custom.js`, `logseq/custom.css`, `logseq/publish.js`, `logseq/publish.css` etc.
877+
* @param path
878+
* @param content
879+
*/
880+
setFileContent: (path: string, content: string) => Promise<void>
874881
}
875882

876883
/**

0 commit comments

Comments
 (0)