Move rendering and select prev/next into ContextMenu enum

This prepares the way to have a code actions context menu.
This commit is contained in:
Nathan Sobo 2022-02-05 10:19:43 -07:00
parent ee661516fa
commit 93a3f4b615
4 changed files with 149 additions and 125 deletions

View file

@ -2468,7 +2468,7 @@ mod tests {
// Confirm a completion on the guest.
editor_b.next_notification(&cx_b).await;
editor_b.update(&mut cx_b, |editor, cx| {
assert!(editor.has_completions());
assert!(editor.should_render_context_menu());
editor.confirm_completion(Some(0), cx);
assert_eq!(editor.text(cx), "fn main() { a.first_method() }");
});