File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ use crate::{
26
26
pub struct CompletionItem {
27
27
/// Label in the completion pop up which identifies completion.
28
28
pub label : SmolStr ,
29
- /// Addition label details in the completion pop up that are
29
+ /// Additional label details in the completion pop up that are
30
30
/// displayed and aligned on the right side after the label.
31
31
pub label_detail : Option < SmolStr > ,
32
32
Original file line number Diff line number Diff line change @@ -304,6 +304,8 @@ fn completion_item(
304
304
detail : item. label_detail . as_ref ( ) . map ( ToString :: to_string) ,
305
305
description : lsp_item. detail . clone ( ) ,
306
306
} ) ;
307
+ } else if let Some ( label_detail) = item. label_detail {
308
+ lsp_item. label . push_str ( label_detail. as_str ( ) ) ;
307
309
}
308
310
309
311
set_score ( & mut lsp_item, max_relevance, item. relevance ) ;
You can’t perform that action at this time.
0 commit comments