Skip to content

Commit

Permalink
add logging for unknown symbol kind in symbol picker
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelaney committed May 15, 2022
1 parent a3db019 commit 1f29d08
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion helix-term/src/commands/lsp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ fn get_symbol_string(symbol: &lsp::SymbolInformation) -> String {
lsp::SymbolKind::EVENT => "event ",
lsp::SymbolKind::OPERATOR => "operator ",
lsp::SymbolKind::TYPE_PARAMETER => "type param",
_ => "",
_ => {
log::warn!("Unknown symbol kind: {:?}", symbol.kind);
""
}
};

// TODO: we currently only show the symbol directly containing the current symbol; however,
Expand Down

0 comments on commit 1f29d08

Please sign in to comment.