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 Frederik Vestre committed Feb 6, 2023
1 parent a04af37 commit 1e69eea
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 1e69eea

Please sign in to comment.