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

This commit is contained in:
Antonio Scandurra
2022-02-03 09:57:04 +01:00
parent 8fc89da573
commit d246a39b57
2 changed files with 31 additions and 5 deletions
+1 -1
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(),