detect file changes

This commit is contained in:
codetypes committed 2024-11-21 09:38:31 +08:00
1 parent 298cedbbb3
commit cf1c33891f
4 files changed
+33 -12

No files matched your search

+1 -1
View File
@@ -694,7 +694,7 @@ export const Explorer: FC = () => {
console.log("editor move", editor.path === newPath, editor.path, newPath);
if (editor.path.startsWith(newPath)) {
console.log("editor reload", editor.path === newPath, editor.path, newPath);
editor.dispatch("reload");
editor.dispatch("refresh");
}
}
};