mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
internal: Add config to specifiy lru capacities for all queries
This commit is contained in:
parent
27c076a367
commit
5616d91b73
8 changed files with 202 additions and 9 deletions
|
@ -139,7 +139,10 @@ impl GlobalState {
|
|||
Handle { handle, receiver }
|
||||
};
|
||||
|
||||
let analysis_host = AnalysisHost::new(config.lru_capacity());
|
||||
let mut analysis_host = AnalysisHost::new(config.lru_parse_query_capacity());
|
||||
if let Some(capacities) = config.lru_query_capacities() {
|
||||
analysis_host.update_lru_capacities(capacities);
|
||||
}
|
||||
let (flycheck_sender, flycheck_receiver) = unbounded();
|
||||
let mut this = GlobalState {
|
||||
sender,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue