Skip to content

Commit

Permalink
error! on unknown CompletionItemKind (helix-editor#4658)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tefached95 authored and Shekhinah Memmel committed Dec 11, 2022
1 parent e00e765 commit 34e45f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion helix-term/src/ui/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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("")
Expand Down

0 comments on commit 34e45f4

Please sign in to comment.