mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +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
@ -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 New Issue
Block a user