mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Add time based fuel to term search
This commit is contained in:
parent
c3ab435b54
commit
d253617bba
2 changed files with 36 additions and 8 deletions
|
@ -353,7 +353,8 @@ pub(crate) fn complete_expr(acc: &mut Completions, ctx: &CompletionContext<'_>)
|
|||
config: hir::term_search::TermSearchConfig {
|
||||
enable_borrowcheck: false,
|
||||
many_alternatives_threshold: 1,
|
||||
depth: 6,
|
||||
depth: 3,
|
||||
..Default::default()
|
||||
},
|
||||
};
|
||||
let exprs = hir::term_search::term_search(&term_search_ctx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue