diff options
author | Aleksey Kladov <[email protected]> | 2019-09-06 14:25:24 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-09-06 15:21:29 +0100 |
commit | 28df377759ee5625b0dad4c797be306c8d2624e3 (patch) | |
tree | a5fb9afa541a4e6ab5818530b3fd19d5e461ef9e /crates/ra_batch | |
parent | 007737a0e7dd2866e02a6398d8ee4aa7d5051d8c (diff) |
add option to disable notify
Diffstat (limited to 'crates/ra_batch')
-rw-r--r-- | crates/ra_batch/Cargo.toml | 2 | ||||
-rw-r--r-- | crates/ra_batch/src/lib.rs | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/crates/ra_batch/Cargo.toml b/crates/ra_batch/Cargo.toml index 5fc2703ee..62850746f 100644 --- a/crates/ra_batch/Cargo.toml +++ b/crates/ra_batch/Cargo.toml | |||
@@ -9,7 +9,7 @@ log = "0.4.5" | |||
9 | rustc-hash = "1.0" | 9 | rustc-hash = "1.0" |
10 | crossbeam-channel = "0.3.5" | 10 | crossbeam-channel = "0.3.5" |
11 | 11 | ||
12 | ra_vfs = "0.3.0" | 12 | ra_vfs = "0.4.0" |
13 | ra_vfs_glob = { path = "../ra_vfs_glob" } | 13 | ra_vfs_glob = { path = "../ra_vfs_glob" } |
14 | ra_db = { path = "../ra_db" } | 14 | ra_db = { path = "../ra_db" } |
15 | ra_ide_api = { path = "../ra_ide_api" } | 15 | ra_ide_api = { path = "../ra_ide_api" } |
diff --git a/crates/ra_batch/src/lib.rs b/crates/ra_batch/src/lib.rs index 4e5bad044..07a7e0c86 100644 --- a/crates/ra_batch/src/lib.rs +++ b/crates/ra_batch/src/lib.rs | |||
@@ -6,7 +6,7 @@ use crossbeam_channel::{unbounded, Receiver}; | |||
6 | use ra_db::{CrateGraph, FileId, SourceRootId}; | 6 | use ra_db::{CrateGraph, FileId, SourceRootId}; |
7 | use ra_ide_api::{AnalysisChange, AnalysisHost, FeatureFlags}; | 7 | use ra_ide_api::{AnalysisChange, AnalysisHost, FeatureFlags}; |
8 | use ra_project_model::{PackageRoot, ProjectWorkspace}; | 8 | use ra_project_model::{PackageRoot, ProjectWorkspace}; |
9 | use ra_vfs::{RootEntry, Vfs, VfsChange, VfsTask}; | 9 | use ra_vfs::{RootEntry, Vfs, VfsChange, VfsTask, Watch}; |
10 | use ra_vfs_glob::RustPackageFilterBuilder; | 10 | use ra_vfs_glob::RustPackageFilterBuilder; |
11 | 11 | ||
12 | type Result<T> = std::result::Result<T, Box<dyn Error + Send + Sync>>; | 12 | type Result<T> = std::result::Result<T, Box<dyn Error + Send + Sync>>; |
@@ -37,6 +37,7 @@ pub fn load_cargo(root: &Path) -> Result<(AnalysisHost, FxHashMap<SourceRootId, | |||
37 | }) | 37 | }) |
38 | .collect(), | 38 | .collect(), |
39 | sender, | 39 | sender, |
40 | Watch(false), | ||
40 | ); | 41 | ); |
41 | let crate_graph = ws.to_crate_graph(&mut |path: &Path| { | 42 | let crate_graph = ws.to_crate_graph(&mut |path: &Path| { |
42 | let vfs_file = vfs.load(path); | 43 | let vfs_file = vfs.load(path); |