mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
fix tests
This commit is contained in:
parent
e6465e7e2a
commit
2fe41574a1
5 changed files with 26 additions and 13 deletions
|
@ -48,7 +48,8 @@ impl ServerWorldState {
|
|||
let roots_to_scan = roots.len();
|
||||
let (mut vfs, roots) = Vfs::new(roots);
|
||||
for r in roots {
|
||||
change.add_root(SourceRootId(r.0));
|
||||
let is_local = vfs.root2path(r).starts_with(&root);
|
||||
change.add_root(SourceRootId(r.0), is_local);
|
||||
}
|
||||
|
||||
let mut crate_graph = CrateGraph::default();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue