diff options
author | Marko Klobučar Ledinšćak | 2022-11-08 18:36:01 +0000 |
---|---|---|
committer | GitHub | 2022-11-08 18:36:01 +0000 |
commit | d8e9c85f5ec10433eb17f8f240e08e765a218cfa (patch) | |
tree | e13c8603ff9c9f6c5a8144106e5e196a6a111695 | |
parent | 0c30aeea5b6ba3c8b6b72b8a92cd319b4db44510 (diff) |
`error!` on unknown `CompletionItemKind` (#4658)
-rw-r--r-- | helix-term/src/ui/completion.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/helix-term/src/ui/completion.rs b/helix-term/src/ui/completion.rs index 5ec8cf89..545b19d8 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("") |