Pass build watch argument into Vfs

This commit is contained in:
Lucien Greathouse
2020-06-17 14:11:48 -07:00
parent fc27b2911e
commit 782b054b1a

View File

@@ -43,6 +43,7 @@ pub fn build(options: BuildCommand) -> Result<(), anyhow::Error> {
log::trace!("Constructing in-memory filesystem");
let vfs = Vfs::new_default();
vfs.set_watch_enabled(options.watch);
let session = ServeSession::new(vfs, &options.absolute_project())?;
let mut cursor = session.message_queue().cursor();