Optionally disable term search for autocompletion

This commit is contained in:
Tavo Annus 2024-01-22 20:34:17 +02:00
parent 0b838e3e23
commit 88964c0b6a
13 changed files with 163 additions and 41 deletions

View file

@ -331,6 +331,11 @@ pub(crate) fn complete_expr_path(
pub(crate) fn complete_expr(acc: &mut Completions, ctx: &CompletionContext<'_>) {
let _p = tracing::span!(tracing::Level::INFO, "complete_expr").entered();
if !ctx.config.enable_term_search {
return;
}
if !ctx.qualifier_ctx.none() {
return;
}