mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Re-implement dependecny tracking for cargo script
This commit is contained in:
parent
2f828073aa
commit
0b24599cf9
10 changed files with 187 additions and 234 deletions
|
@ -335,7 +335,7 @@ fn load_crate_graph(
|
|||
) -> RootDatabase {
|
||||
let (ProjectWorkspace::Cargo { toolchain, target_layout, .. }
|
||||
| ProjectWorkspace::Json { toolchain, target_layout, .. }
|
||||
| ProjectWorkspace::DetachedFiles { toolchain, target_layout, .. }) = ws;
|
||||
| ProjectWorkspace::DetachedFile { toolchain, target_layout, .. }) = ws;
|
||||
|
||||
let lru_cap = std::env::var("RA_LRU_CAP").ok().and_then(|it| it.parse::<usize>().ok());
|
||||
let mut db = RootDatabase::new(lru_cap);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue