mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 11:20:54 +00:00
fix recursive watch
This commit is contained in:
parent
2a1afad3ed
commit
eeed6cf53b
@ -91,9 +91,14 @@ impl Watcher {
|
|||||||
match res {
|
match res {
|
||||||
Ok(entry) => {
|
Ok(entry) => {
|
||||||
if entry.path().is_dir() {
|
if entry.path().is_dir() {
|
||||||
match self.watcher.watch(dir, RecursiveMode::NonRecursive) {
|
match self
|
||||||
Ok(()) => log::debug!("watching \"{}\"", dir.display()),
|
.watcher
|
||||||
Err(e) => log::warn!("could not watch \"{}\": {}", dir.display(), e),
|
.watch(entry.path(), RecursiveMode::NonRecursive)
|
||||||
|
{
|
||||||
|
Ok(()) => log::debug!("watching \"{}\"", entry.path().display()),
|
||||||
|
Err(e) => {
|
||||||
|
log::warn!("could not watch \"{}\": {}", entry.path().display(), e)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if emit_for_contents && entry.depth() > 0 {
|
if emit_for_contents && entry.depth() > 0 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user