diff options
author | Seivan Heidari <[email protected]> | 2019-11-25 00:54:54 +0000 |
---|---|---|
committer | Seivan Heidari <[email protected]> | 2019-11-25 00:54:54 +0000 |
commit | 15ea338ac991707d330288ba4d1bf5daa0fc75d9 (patch) | |
tree | 16aeab28bcdb07d36aae28e3fb4a385614865a48 /crates/ra_batch/src | |
parent | eb7363d167c7a9f7c73cb950b621eb1dce493318 (diff) | |
parent | f7f9757b6b144385ab8ce57b15764473b1f57331 (diff) |
Merge branch 'master' of https://github.com/rust-analyzer/rust-analyzer into feature/themes
Diffstat (limited to 'crates/ra_batch/src')
-rw-r--r-- | crates/ra_batch/src/lib.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/crates/ra_batch/src/lib.rs b/crates/ra_batch/src/lib.rs index df49eb13d..cb389eb26 100644 --- a/crates/ra_batch/src/lib.rs +++ b/crates/ra_batch/src/lib.rs | |||
@@ -117,9 +117,12 @@ pub fn load( | |||
117 | done = true; | 117 | done = true; |
118 | } | 118 | } |
119 | } | 119 | } |
120 | VfsChange::AddFile { .. } | 120 | VfsChange::AddFile { root, file, path, text } => { |
121 | | VfsChange::RemoveFile { .. } | 121 | let source_root_id = vfs_root_to_id(root); |
122 | | VfsChange::ChangeFile { .. } => { | 122 | let file_id = vfs_file_to_id(file); |
123 | analysis_change.add_file(source_root_id, file_id, path, text); | ||
124 | } | ||
125 | VfsChange::RemoveFile { .. } | VfsChange::ChangeFile { .. } => { | ||
123 | // We just need the first scan, so just ignore these | 126 | // We just need the first scan, so just ignore these |
124 | } | 127 | } |
125 | } | 128 | } |