Start on completion rendering

Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Nathan Sobo 2022-01-31 12:19:17 -07:00
parent 960696a504
commit ab6eb0a655
3 changed files with 60 additions and 5 deletions

View file

@ -2424,6 +2424,12 @@ impl Default for Diagnostic {
}
}
impl Completion {
pub fn label(&self) -> &str {
&self.lsp_completion.label
}
}
pub fn contiguous_ranges(
values: impl Iterator<Item = u32>,
max_len: usize,