From 782b054b1ae712c7d3ceccbdd3ae4e70ef01c690 Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Wed, 17 Jun 2020 14:11:48 -0700 Subject: [PATCH] Pass build watch argument into Vfs --- src/cli/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cli/build.rs b/src/cli/build.rs index 88760e2f..4cfe9f77 100644 --- a/src/cli/build.rs +++ b/src/cli/build.rs @@ -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();