refactor: rename variable for consistency

This commit is contained in:
Nikita Revenco 2024-12-19 17:17:25 +00:00
parent 1a2b6166cd
commit 662b6d3e53

View file

@ -101,7 +101,7 @@ impl menu::Item for CompletionItem {
Some(lsp::CompletionItemKind::SNIPPET) => "snippet".into(),
Some(lsp::CompletionItemKind::COLOR) => {
let maybe_hex_color = match &item.documentation {
Some(Documentation::String(text)) => Some(text),
Some(Documentation::String(value)) => Some(value),
Some(Documentation::MarkupContent(MarkupContent { value, .. })) => {
Some(value)
}