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:
parent
ee661516fa
commit
93a3f4b615
4 changed files with 149 additions and 125 deletions
|
@ -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() }");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue