diff options
Diffstat (limited to 'crates/ra_vfs')
-rw-r--r-- | crates/ra_vfs/src/lib.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/ra_vfs/src/lib.rs b/crates/ra_vfs/src/lib.rs index 792f722a7..20482c396 100644 --- a/crates/ra_vfs/src/lib.rs +++ b/crates/ra_vfs/src/lib.rs | |||
@@ -202,7 +202,7 @@ impl Vfs { | |||
202 | VfsChange::ChangeFile { file, text } | 202 | VfsChange::ChangeFile { file, text } |
203 | } else { | 203 | } else { |
204 | self.remove_file(file); | 204 | self.remove_file(file); |
205 | VfsChange::RemoveFile { file } | 205 | VfsChange::RemoveFile { root, file, path } |
206 | }; | 206 | }; |
207 | self.pending_changes.push(change); | 207 | self.pending_changes.push(change); |
208 | } | 208 | } |
@@ -260,13 +260,15 @@ pub enum VfsChange { | |||
260 | files: Vec<(VfsFile, RelativePathBuf, Arc<String>)>, | 260 | files: Vec<(VfsFile, RelativePathBuf, Arc<String>)>, |
261 | }, | 261 | }, |
262 | AddFile { | 262 | AddFile { |
263 | file: VfsFile, | ||
264 | root: VfsRoot, | 263 | root: VfsRoot, |
264 | file: VfsFile, | ||
265 | path: RelativePathBuf, | 265 | path: RelativePathBuf, |
266 | text: Arc<String>, | 266 | text: Arc<String>, |
267 | }, | 267 | }, |
268 | RemoveFile { | 268 | RemoveFile { |
269 | root: VfsRoot, | ||
269 | file: VfsFile, | 270 | file: VfsFile, |
271 | path: RelativePathBuf, | ||
270 | }, | 272 | }, |
271 | ChangeFile { | 273 | ChangeFile { |
272 | file: VfsFile, | 274 | file: VfsFile, |