diff --git a/lapce-ui/src/completion.rs b/lapce-ui/src/completion.rs index 8c05e8f3..cc54fec7 100644 --- a/lapce-ui/src/completion.rs +++ b/lapce-ui/src/completion.rs @@ -260,6 +260,10 @@ pub fn ensure_item_top_visible( } fn update_documentation(&mut self, data: &LapceTabData) { + if data.completion.status == CompletionStatus::Inactive { + return; + } + let documentation = if data.config.editor.completion_show_documentation { let current_item = (!data.completion.is_empty()) .then(|| data.completion.current_item());