Syntax highlight even when the label doesn't contain a detail

This commit is contained in:
Antonio Scandurra 2022-02-03 09:39:21 +01:00
parent 8fc89da573
commit d246a39b57
2 changed files with 31 additions and 5 deletions

View file

@ -342,7 +342,7 @@ impl Grammar {
}
impl CompletionLabel {
fn plain(completion: &lsp::CompletionItem) -> Self {
pub fn plain(completion: &lsp::CompletionItem) -> Self {
let mut result = Self {
text: completion.label.clone(),
runs: Vec::new(),