mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 05:08:52 +00:00
Don't watch dirs if not asked to
This commit is contained in:
parent
1a3b507a00
commit
089ea36b2e
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ impl LoaderActor {
|
|||
let is_dir = entry.file_type().is_dir();
|
||||
let is_file = entry.file_type().is_file();
|
||||
let abs_path = AbsPathBuf::try_from(entry.into_path()).unwrap();
|
||||
if is_dir {
|
||||
if is_dir && watch {
|
||||
self.watch(abs_path.clone());
|
||||
}
|
||||
let rel_path = abs_path.strip_prefix(&path)?;
|
||||
|
|
Loading…
Reference in a new issue