Skip to content

Commit

Permalink
fix: Fix watcher would send ipc messages before the file was written …
Browse files Browse the repository at this point in the history
…to completion
  • Loading branch information
ximu3 committed Dec 1, 2024
1 parent 488e8ad commit 01b6869
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/watcher/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ export class Watcher {
ignored: /(^|[/\\])\./, // 忽略点文件
persistent: true,
ignoreInitial: true,
depth: 5 // 监控嵌套子目录到2层
depth: 5, // 监控嵌套子目录到2层
awaitWriteFinish: {
stabilityThreshold: 2000,
pollInterval: 100
}
})

this.watcher
Expand Down

0 comments on commit 01b6869

Please sign in to comment.