diff options
Diffstat (limited to 'crates/ra_vfs/src/watcher.rs')
-rw-r--r-- | crates/ra_vfs/src/watcher.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/crates/ra_vfs/src/watcher.rs b/crates/ra_vfs/src/watcher.rs index 3bd0e7da2..dfbbcbfe6 100644 --- a/crates/ra_vfs/src/watcher.rs +++ b/crates/ra_vfs/src/watcher.rs | |||
@@ -35,24 +35,24 @@ fn send_change_events( | |||
35 | // ignore | 35 | // ignore |
36 | } | 36 | } |
37 | DebouncedEvent::Rescan => { | 37 | DebouncedEvent::Rescan => { |
38 | sender.send(io::Task::LoadChange(WatcherChange::Rescan))?; | 38 | sender.send(io::Task::HandleChange(WatcherChange::Rescan))?; |
39 | } | 39 | } |
40 | DebouncedEvent::Create(path) => { | 40 | DebouncedEvent::Create(path) => { |
41 | sender.send(io::Task::LoadChange(WatcherChange::Create(path)))?; | 41 | sender.send(io::Task::HandleChange(WatcherChange::Create(path)))?; |
42 | } | 42 | } |
43 | DebouncedEvent::Write(path) => { | 43 | DebouncedEvent::Write(path) => { |
44 | sender.send(io::Task::LoadChange(WatcherChange::Write(path)))?; | 44 | sender.send(io::Task::HandleChange(WatcherChange::Write(path)))?; |
45 | } | 45 | } |
46 | DebouncedEvent::Remove(path) => { | 46 | DebouncedEvent::Remove(path) => { |
47 | sender.send(io::Task::LoadChange(WatcherChange::Remove(path)))?; | 47 | sender.send(io::Task::HandleChange(WatcherChange::Remove(path)))?; |
48 | } | 48 | } |
49 | DebouncedEvent::Rename(src, dst) => { | 49 | DebouncedEvent::Rename(src, dst) => { |
50 | sender.send(io::Task::LoadChange(WatcherChange::Remove(src)))?; | 50 | sender.send(io::Task::HandleChange(WatcherChange::Remove(src)))?; |
51 | sender.send(io::Task::LoadChange(WatcherChange::Create(dst)))?; | 51 | sender.send(io::Task::HandleChange(WatcherChange::Create(dst)))?; |
52 | } | 52 | } |
53 | DebouncedEvent::Error(err, path) => { | 53 | DebouncedEvent::Error(err, path) => { |
54 | // TODO should we reload the file contents? | 54 | // TODO should we reload the file contents? |
55 | log::warn!("watcher error {}, {:?}", err, path); | 55 | log::warn!("watcher error \"{}\", {:?}", err, path); |
56 | } | 56 | } |
57 | } | 57 | } |
58 | Ok(()) | 58 | Ok(()) |