From d8e9c85f5ec10433eb17f8f240e08e765a218cfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Klobu=C4=8Dar=20Ledin=C5=A1=C4=87ak?= Date: Tue, 8 Nov 2022 19:36:01 +0100 Subject: [PATCH] `error!` on unknown `CompletionItemKind` (#4658) --- helix-term/src/ui/completion.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/helix-term/src/ui/completion.rs b/helix-term/src/ui/completion.rs index 5ec8cf892..545b19d89 100644 --- a/helix-term/src/ui/completion.rs +++ b/helix-term/src/ui/completion.rs @@ -66,7 +66,10 @@ impl menu::Item for CompletionItem { 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("")