Generalize showing and hiding of context menus
We still cancel pending completions when hiding the context menu so its not perfectly general, but I think this is ok.
This commit is contained in:
@@ -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.should_render_context_menu());
|
||||
assert!(editor.showing_context_menu());
|
||||
editor.confirm_completion(Some(0), cx);
|
||||
assert_eq!(editor.text(cx), "fn main() { a.first_method() }");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user