mirror of https://github.com/lapce/lapce.git
don't update documentation if completion is inactive
This commit is contained in:
parent
bd4a408806
commit
e4fb0ed64b
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue