error!
on unknown CompletionItemKind
(#4658)
This commit is contained in:
parent
0c30aeea5b
commit
d8e9c85f5e
|
@ -66,7 +66,10 @@ fn row(&self, _data: &Self::Data) -> menu::Row {
|
||||||
Some(lsp::CompletionItemKind::EVENT) => "event",
|
Some(lsp::CompletionItemKind::EVENT) => "event",
|
||||||
Some(lsp::CompletionItemKind::OPERATOR) => "operator",
|
Some(lsp::CompletionItemKind::OPERATOR) => "operator",
|
||||||
Some(lsp::CompletionItemKind::TYPE_PARAMETER) => "type_param",
|
Some(lsp::CompletionItemKind::TYPE_PARAMETER) => "type_param",
|
||||||
Some(kind) => unimplemented!("{:?}", kind),
|
Some(kind) => {
|
||||||
|
log::error!("Received unknown completion item kind: {:?}", kind);
|
||||||
|
""
|
||||||
|
}
|
||||||
None => "",
|
None => "",
|
||||||
}),
|
}),
|
||||||
// self.detail.as_deref().unwrap_or("")
|
// self.detail.as_deref().unwrap_or("")
|
||||||
|
|
Loading…
Reference in a new issue