From 68d309e79cd921a994efd0935887e9f31f80a166 Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Mon, 4 Dec 2023 16:39:40 +0100 Subject: [PATCH] Fix disparity between editor2 and edito1 wrt copilot completions. Fixes test test_copilot. Co-authored-by: Antonio --- crates/editor2/src/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/editor2/src/editor.rs b/crates/editor2/src/editor.rs index c7141fe5879505dd67782dabecb581113c0c52ed..87fa9875d4553589546ba037375753fc2649b426 100644 --- a/crates/editor2/src/editor.rs +++ b/crates/editor2/src/editor.rs @@ -3489,7 +3489,7 @@ impl Editor { drop(context_menu); this.discard_copilot_suggestion(cx); cx.notify(); - } else if this.completion_tasks.is_empty() { + } else if this.completion_tasks.len() <= 1 { // If there are no more completion tasks and the last menu was // empty, we should hide it. If it was already hidden, we should // also show the copilot suggestion when available.