on master help sign in
`error!` on unknown `CompletionItemKind` (#4658)
commitd8e9c85f5ec10433eb17f8f240e08e765a218cfa authorMarko Klobučar Ledinšćak <mrqoqlobo@gmail.com> dateTue 8 Nov 2022, 19:36 (4 years ago) parent0c30aee
1 file changed+4−1
helix-term/src/ui/completion.rs+4−1
helix-term/src/ui/completion.rs+4−1
@@ -66,7 +66,10 @@ impl menu::Item for CompletionItem {
6666 Some(lsp::CompletionItemKind::EVENT) => "event",
6767 Some(lsp::CompletionItemKind::OPERATOR) => "operator",
6868 Some(lsp::CompletionItemKind::TYPE_PARAMETER) => "type_param",
69− Some(kind) => unimplemented!("{:?}", kind),
69+ Some(kind) => {
70+ log::error!("Received unknown completion item kind: {:?}", kind);
71+ ""
72+ }
7073 None => "",
7174 }),
7275 // self.detail.as_deref().unwrap_or("")