diff options
Diffstat (limited to 'crates/ra_analysis/src/lib.rs')
-rw-r--r-- | crates/ra_analysis/src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_analysis/src/lib.rs b/crates/ra_analysis/src/lib.rs index 0db3c3479..a1d462528 100644 --- a/crates/ra_analysis/src/lib.rs +++ b/crates/ra_analysis/src/lib.rs | |||
@@ -44,7 +44,7 @@ pub use ra_db::{ | |||
44 | 44 | ||
45 | #[derive(Default)] | 45 | #[derive(Default)] |
46 | pub struct AnalysisChange { | 46 | pub struct AnalysisChange { |
47 | new_roots: Vec<SourceRootId>, | 47 | new_roots: Vec<(SourceRootId, bool)>, |
48 | roots_changed: FxHashMap<SourceRootId, RootChange>, | 48 | roots_changed: FxHashMap<SourceRootId, RootChange>, |
49 | files_changed: Vec<(FileId, Arc<String>)>, | 49 | files_changed: Vec<(FileId, Arc<String>)>, |
50 | libraries_added: Vec<LibraryData>, | 50 | libraries_added: Vec<LibraryData>, |
@@ -95,8 +95,8 @@ impl AnalysisChange { | |||
95 | pub fn new() -> AnalysisChange { | 95 | pub fn new() -> AnalysisChange { |
96 | AnalysisChange::default() | 96 | AnalysisChange::default() |
97 | } | 97 | } |
98 | pub fn add_root(&mut self, root_id: SourceRootId) { | 98 | pub fn add_root(&mut self, root_id: SourceRootId, is_local: bool) { |
99 | self.new_roots.push(root_id); | 99 | self.new_roots.push((root_id, is_local)); |
100 | } | 100 | } |
101 | pub fn add_file( | 101 | pub fn add_file( |
102 | &mut self, | 102 | &mut self, |