diff options
author | Philipp Mildenberger | 2023-03-19 20:22:29 +0000 |
---|---|---|
committer | Philipp Mildenberger | 2023-05-18 19:48:32 +0000 |
commit | b1199c552be39eec8cb428310c8bb2a952454b04 (patch) | |
tree | 7ec70a0b6f06daad3a7b1c015fba16d38643858f /helix-term/src/commands/lsp.rs | |
parent | 58c913ce4567a95c52808d78245eb1dac806971c (diff) |
Remove symbol picker is_empty check
Diffstat (limited to 'helix-term/src/commands/lsp.rs')
-rw-r--r-- | helix-term/src/commands/lsp.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/helix-term/src/commands/lsp.rs b/helix-term/src/commands/lsp.rs index 9eaead95..9e9639bf 100644 --- a/helix-term/src/commands/lsp.rs +++ b/helix-term/src/commands/lsp.rs @@ -399,11 +399,7 @@ pub fn symbol_picker(cx: &mut Context) { while let Some(mut lsp_items) = futures.try_next().await? { symbols.append(&mut lsp_items); } - let call = move |editor: &mut Editor, compositor: &mut Compositor| { - if symbols.is_empty() { - editor.set_error("No symbols available"); - return; - } + let call = move |_editor: &mut Editor, compositor: &mut Compositor| { let picker = sym_picker(symbols, current_url); compositor.push(Box::new(overlaid(picker))) }; |