mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 14:13:58 +00:00
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:
parent
789d9ca1d3
commit
682dd4dac0
1 changed files with 2 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue