Skip to content

Commit

Permalink
fix: trigger file watching immediately on Windows for directory opera…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
purocean committed Feb 5, 2025
1 parent 7b6bd99 commit a21175b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/startup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function switchDefaultPreviewer () {
function reWatchFsOnWindows ({ doc }: { doc: PathItem & { type?: Doc['type'] }}) {
// fix parent folder rename / delete on Windows https://github.com/paulmillr/chokidar/issues/664
if (isWindows && doc.type === 'dir') {
setTimeout(indexer.triggerWatchCurrentRepo, 100)
indexer.triggerWatchCurrentRepo()
}
}

Expand Down

0 comments on commit a21175b

Please sign in to comment.