Revert "Resolve documentation for visible completions (#21705)" (#21985)

This reverts commit ab595b0d55.

Release Notes:

- (preview only) Fixed a panic in completions
This commit is contained in:
Conrad Irwin 2024-12-13 12:22:26 -07:00 committed by GitHub
parent 2b699053e6
commit 2f2e7f0317
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 182 additions and 288 deletions

View file

@ -3736,7 +3736,7 @@ impl Editor {
if editor.focus_handle.is_focused(cx) && menu.is_some() {
let mut menu = menu.unwrap();
menu.resolve_visible_completions(editor.completion_provider.as_deref(), cx);
menu.resolve_selected_completion(editor.completion_provider.as_deref(), cx);
*context_menu = Some(CodeContextMenu::Completions(menu));
drop(context_menu);
cx.notify();