Prepare to recompute completions on every keystroke

If we set `is_incomplete: true`, VS Code will re-query completions
after every keypress.
This commit is contained in:
Aleksey Kladov 2020-11-16 17:27:36 +01:00
parent 789d9ca1d3
commit 682dd4dac0

View File

@ -573,7 +573,8 @@ pub(crate) fn handle_completion(
.flat_map(|item| to_proto::completion_item(&line_index, line_endings, item))
.collect();
Ok(Some(items.into()))
let completion_list = lsp_types::CompletionList { is_incomplete: false, items };
Ok(Some(completion_list.into()))
}
pub(crate) fn handle_folding_range(