error! on unknown CompletionItemKind (#4658)

This commit is contained in:
Marko Klobučar Ledinšćak 2022-11-08 19:36:01 +01:00 committed by GitHub
parent 0c30aeea5b
commit d8e9c85f5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,7 +66,10 @@ fn row(&self, _data: &Self::Data) -> menu::Row {
Some(lsp::CompletionItemKind::EVENT) => "event",
Some(lsp::CompletionItemKind::OPERATOR) => "operator",
Some(lsp::CompletionItemKind::TYPE_PARAMETER) => "type_param",
Some(kind) => unimplemented!("{:?}", kind),
Some(kind) => {
log::error!("Received unknown completion item kind: {:?}", kind);
""
}
None => "",
}),
// self.detail.as_deref().unwrap_or("")