From 034bc75467f8c340f8901ae391509fd9362dedbe Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Mon, 27 Mar 2023 17:16:10 +0200 Subject: [PATCH] Refresh copilot suggestions when hitting `alt-]` if none are showing Co-Authored-By: Mikayla Maki --- crates/editor/src/editor.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index cfe803adfc2dc19ee4758dd56c7b96240e40780b..fca43214222b00ea16035ce6216a0b450ee5d93f 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -2834,6 +2834,7 @@ impl Editor { fn next_copilot_suggestion(&mut self, _: &copilot::NextSuggestion, cx: &mut ViewContext) { if self.copilot_state.completions.is_empty() { + self.refresh_copilot_suggestions(cx); return; }