diff options
author | Aleksey Kladov <[email protected]> | 2018-12-19 07:28:57 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-12-20 09:15:38 +0000 |
commit | d0bab735c81d616629a54cca7b35c2f7cd26408a (patch) | |
tree | 86ff09cd25a33675e2080dae71e619bc9181ee58 /crates/ra_vfs/src | |
parent | b6ce7a6d344fa673addcd299cbb19b050625e04d (diff) |
add root & path info to remove event
Diffstat (limited to 'crates/ra_vfs/src')
-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, |