From 28df377759ee5625b0dad4c797be306c8d2624e3 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 6 Sep 2019 16:25:24 +0300 Subject: add option to disable notify --- crates/ra_lsp_server/src/world.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crates/ra_lsp_server/src/world.rs') diff --git a/crates/ra_lsp_server/src/world.rs b/crates/ra_lsp_server/src/world.rs index e1c5c3343..086ecd587 100644 --- a/crates/ra_lsp_server/src/world.rs +++ b/crates/ra_lsp_server/src/world.rs @@ -12,7 +12,7 @@ use ra_ide_api::{ SourceRootId, }; use ra_project_model::ProjectWorkspace; -use ra_vfs::{LineEndings, RootEntry, Vfs, VfsChange, VfsFile, VfsRoot, VfsTask}; +use ra_vfs::{LineEndings, RootEntry, Vfs, VfsChange, VfsFile, VfsRoot, VfsTask, Watch}; use ra_vfs_glob::{Glob, RustPackageFilterBuilder}; use relative_path::RelativePathBuf; @@ -60,6 +60,7 @@ impl WorldState { workspaces: Vec, lru_capacity: Option, exclude_globs: &[Glob], + watch: Watch, options: Options, feature_flags: FeatureFlags, ) -> WorldState { @@ -85,7 +86,7 @@ impl WorldState { } let (task_sender, task_receiver) = unbounded(); let task_sender = Box::new(move |t| task_sender.send(t).unwrap()); - let (mut vfs, vfs_roots) = Vfs::new(roots, task_sender); + let (mut vfs, vfs_roots) = Vfs::new(roots, task_sender, watch); let roots_to_scan = vfs_roots.len(); for r in vfs_roots { let vfs_root_path = vfs.root2path(r); -- cgit v1.2.3