fix: windows hot reload (#2687)
This commit is contained in:
1 parent
117c9d18ae
commit
9ca5396343
1 file changed
+2
-1
@@ -62,7 +62,7 @@ impl Watcher {
|
|||||||
match e.kind {
|
match e.kind {
|
||||||
|
|
||||||
// An event emitted when the metadata of a file or folder is changed.
|
// An event emitted when the metadata of a file or folder is changed.
|
||||||
EventKind::Modify(ModifyKind::Data(_)) |
|
EventKind::Modify(ModifyKind::Data(_) | ModifyKind::Any) |
|
||||||
EventKind::Create(_) |
|
EventKind::Create(_) |
|
||||||
EventKind::Remove(_) => {
|
EventKind::Remove(_) => {
|
||||||
_ = tx.unbounded_send(e);
|
_ = tx.unbounded_send(e);
|
||||||
@@ -139,6 +139,7 @@ impl Watcher {
|
|||||||
for event in self.queued_events.drain(..) {
|
for event in self.queued_events.drain(..) {
|
||||||
// We only care about modify/crate/delete events
|
// We only care about modify/crate/delete events
|
||||||
match event.kind {
|
match event.kind {
|
||||||
|
EventKind::Modify(ModifyKind::Any) => {}
|
||||||
EventKind::Modify(ModifyKind::Data(_)) => {}
|
EventKind::Modify(ModifyKind::Data(_)) => {}
|
||||||
EventKind::Modify(ModifyKind::Name(_)) => {}
|
EventKind::Modify(ModifyKind::Name(_)) => {}
|
||||||
EventKind::Create(_) => {}
|
EventKind::Create(_) => {}
|
||||||
|
|||||||
Reference in new issue
Block a user