mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-22 21:41:37 +00:00
Refactor VFS watch logic in ServeSession
- Simplified the VFS watch setup by removing the directory type check, allowing all entries to be watched directly. - Improved code clarity and reduced complexity in the watching mechanism for project files.
This commit is contained in:
parent
e79691012e
commit
1ab347f498
1 changed files with 2 additions and 4 deletions
|
|
@ -402,10 +402,8 @@ impl ServeSession {
|
|||
.filter_entry(&passes_ignore)
|
||||
.flatten()
|
||||
{
|
||||
if entry.file_type().is_dir() {
|
||||
let _ = vfs.watch(entry.path());
|
||||
watch_count += 1;
|
||||
}
|
||||
let _ = vfs.watch(entry.path());
|
||||
watch_count += 1;
|
||||
}
|
||||
}
|
||||
// Watch project folder non-recursively for project file edits.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue