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:
parent
025e83c1ec
commit
ba99b01de6
3 changed files with 74 additions and 53 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.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() }");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue