diff options
Diffstat (limited to 'crates/ra_lsp_server/src/world.rs')
-rw-r--r-- | crates/ra_lsp_server/src/world.rs | 5 |
1 files changed, 3 insertions, 2 deletions
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::{ | |||
12 | SourceRootId, | 12 | SourceRootId, |
13 | }; | 13 | }; |
14 | use ra_project_model::ProjectWorkspace; | 14 | use ra_project_model::ProjectWorkspace; |
15 | use ra_vfs::{LineEndings, RootEntry, Vfs, VfsChange, VfsFile, VfsRoot, VfsTask}; | 15 | use ra_vfs::{LineEndings, RootEntry, Vfs, VfsChange, VfsFile, VfsRoot, VfsTask, Watch}; |
16 | use ra_vfs_glob::{Glob, RustPackageFilterBuilder}; | 16 | use ra_vfs_glob::{Glob, RustPackageFilterBuilder}; |
17 | use relative_path::RelativePathBuf; | 17 | use relative_path::RelativePathBuf; |
18 | 18 | ||
@@ -60,6 +60,7 @@ impl WorldState { | |||
60 | workspaces: Vec<ProjectWorkspace>, | 60 | workspaces: Vec<ProjectWorkspace>, |
61 | lru_capacity: Option<usize>, | 61 | lru_capacity: Option<usize>, |
62 | exclude_globs: &[Glob], | 62 | exclude_globs: &[Glob], |
63 | watch: Watch, | ||
63 | options: Options, | 64 | options: Options, |
64 | feature_flags: FeatureFlags, | 65 | feature_flags: FeatureFlags, |
65 | ) -> WorldState { | 66 | ) -> WorldState { |
@@ -85,7 +86,7 @@ impl WorldState { | |||
85 | } | 86 | } |
86 | let (task_sender, task_receiver) = unbounded(); | 87 | let (task_sender, task_receiver) = unbounded(); |
87 | let task_sender = Box::new(move |t| task_sender.send(t).unwrap()); | 88 | let task_sender = Box::new(move |t| task_sender.send(t).unwrap()); |
88 | let (mut vfs, vfs_roots) = Vfs::new(roots, task_sender); | 89 | let (mut vfs, vfs_roots) = Vfs::new(roots, task_sender, watch); |
89 | let roots_to_scan = vfs_roots.len(); | 90 | let roots_to_scan = vfs_roots.len(); |
90 | for r in vfs_roots { | 91 | for r in vfs_roots { |
91 | let vfs_root_path = vfs.root2path(r); | 92 | let vfs_root_path = vfs.root2path(r); |