diff options
author | Michael Davis | 2024-02-19 15:07:03 +0000 |
---|---|---|
committer | Skyler Hawthorne | 2024-02-23 03:37:23 +0000 |
commit | b7b6f300841bb61d8833fee1c58d0e3670849b61 (patch) | |
tree | 08899b3a31ccd640ad7775badb702a2b28926977 /helix-term/src/ui/editor.rs | |
parent | 98ebeeebd8c7462409f82d34ff4ac0a7ae9116c7 (diff) |
Use a hook for resolving completion items
Previously we used the IdleTimeout event to trigger LSP
`completion/resolveItem` requests. We can now refactor this to use an
event system hook instead and lower the timeout.
Diffstat (limited to 'helix-term/src/ui/editor.rs')
-rw-r--r-- | helix-term/src/ui/editor.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 66f290a2..15a7262a 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -1027,14 +1027,6 @@ impl EditorView { pub fn handle_idle_timeout(&mut self, cx: &mut commands::Context) -> EventResult { commands::compute_inlay_hints_for_all_views(cx.editor, cx.jobs); - if let Some(completion) = &mut self.completion { - return if completion.ensure_item_resolved(cx) { - EventResult::Consumed(None) - } else { - EventResult::Ignored(None) - }; - } - EventResult::Ignored(None) } } |