mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Rename and change add_roots
to return a Vec
.
This commit is contained in:
parent
00d927a188
commit
614dd3c347
3 changed files with 8 additions and 3 deletions
|
@ -99,7 +99,7 @@ impl BatchDatabase {
|
|||
let ws = ProjectWorkspace::discover(root.as_ref())?;
|
||||
let mut roots = Vec::new();
|
||||
roots.push(root.clone());
|
||||
ws.add_roots(&mut roots);
|
||||
roots.extend(ws.to_roots());
|
||||
let (mut vfs, roots) = Vfs::new(roots);
|
||||
let mut load = |path: &Path| {
|
||||
let vfs_file = vfs.load(path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue