Fix disparity between editor2 and edito1 wrt copilot completions.

Fixes test test_copilot.

Co-authored-by: Antonio <antonio@zed.dev>
This commit is contained in:
Piotr Osiewicz
2023-12-04 16:39:40 +01:00
co-authored by Antonio
parent fd2f1c2594
commit 68d309e79c
+1 -1
View File
@@ -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.