mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +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 }
|
||||
} else {
|
||||
self.remove_file(file);
|
||||
VfsChange::RemoveFile { file }
|
||||
VfsChange::RemoveFile { root, file, path }
|
||||
};
|
||||
self.pending_changes.push(change);
|
||||
}
|
||||
|
@ -260,13 +260,15 @@ pub enum VfsChange {
|
|||
files: Vec<(VfsFile, RelativePathBuf, Arc<String>)>,
|
||||
},
|
||||
AddFile {
|
||||
file: VfsFile,
|
||||
root: VfsRoot,
|
||||
file: VfsFile,
|
||||
path: RelativePathBuf,
|
||||
text: Arc<String>,
|
||||
},
|
||||
RemoveFile {
|
||||
root: VfsRoot,
|
||||
file: VfsFile,
|
||||
path: RelativePathBuf,
|
||||
},
|
||||
ChangeFile {
|
||||
file: VfsFile,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue