Use unit of work as fuel instead of time

This commit is contained in:
Tavo Annus 2024-05-07 22:11:33 +03:00
parent d253617bba
commit 9e1adc76e5
3 changed files with 48 additions and 42 deletions

View file

@ -353,7 +353,7 @@ pub(crate) fn complete_expr(acc: &mut Completions, ctx: &CompletionContext<'_>)
config: hir::term_search::TermSearchConfig {
enable_borrowcheck: false,
many_alternatives_threshold: 1,
depth: 3,
fuel: 200,
..Default::default()
},
};