Skip to content

Commit a15284c

Browse files
authored
CompletionItem detail alway add language_id (#8)
1 parent 1a90bfa commit a15284c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,10 @@ impl BackendState {
443443
value: format!("{description}\n```{}\n{}\n```",doc.language_id, s.body),
444444
})
445445
} else {
446-
Documentation::String(s.body.to_string())
446+
Documentation::MarkupContent(MarkupContent{
447+
kind: MarkupKind::Markdown,
448+
value: format!("```{}\n{}\n```",doc.language_id, s.body),
449+
})
447450
}),
448451
text_edit: Some(CompletionTextEdit::InsertAndReplace(InsertReplaceEdit {
449452
replace: range,

0 commit comments

Comments
 (0)