Add time based fuel to term search

This commit is contained in:
Tavo Annus 2024-05-06 21:56:36 +03:00
parent c3ab435b54
commit d253617bba
2 changed files with 36 additions and 8 deletions

View file

@ -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);