mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
add root & path info to remove event
This commit is contained in:
parent
b6ce7a6d34
commit
d0bab735c8
1 changed files with 4 additions and 2 deletions
|
@ -202,7 +202,7 @@ impl Vfs {
|
||||||
VfsChange::ChangeFile { file, text }
|
VfsChange::ChangeFile { file, text }
|
||||||
} else {
|
} else {
|
||||||
self.remove_file(file);
|
self.remove_file(file);
|
||||||
VfsChange::RemoveFile { file }
|
VfsChange::RemoveFile { root, file, path }
|
||||||
};
|
};
|
||||||
self.pending_changes.push(change);
|
self.pending_changes.push(change);
|
||||||
}
|
}
|
||||||
|
@ -260,13 +260,15 @@ pub enum VfsChange {
|
||||||
files: Vec<(VfsFile, RelativePathBuf, Arc<String>)>,
|
files: Vec<(VfsFile, RelativePathBuf, Arc<String>)>,
|
||||||
},
|
},
|
||||||
AddFile {
|
AddFile {
|
||||||
file: VfsFile,
|
|
||||||
root: VfsRoot,
|
root: VfsRoot,
|
||||||
|
file: VfsFile,
|
||||||
path: RelativePathBuf,
|
path: RelativePathBuf,
|
||||||
text: Arc<String>,
|
text: Arc<String>,
|
||||||
},
|
},
|
||||||
RemoveFile {
|
RemoveFile {
|
||||||
|
root: VfsRoot,
|
||||||
file: VfsFile,
|
file: VfsFile,
|
||||||
|
path: RelativePathBuf,
|
||||||
},
|
},
|
||||||
ChangeFile {
|
ChangeFile {
|
||||||
file: VfsFile,
|
file: VfsFile,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue