import { PluginCommAPI } from 'sn-plugin-lib';
/**
* 重新加载当前笔记的示例。
*/
export async function exampleReloadFile() {
const res = await PluginCommAPI.reloadFile();
if (!res.success) {
throw new Error(res.error?.message ?? 'reloadFile 调用失败');
}
return res.result;
}