Refresh copilot suggestions when hitting `alt-]` if none are showing

Antonio Scandurra and Mikayla Maki created

Co-Authored-By: Mikayla Maki <mikayla@zed.dev>

Change summary

crates/editor/src/editor.rs | 1 +
1 file changed, 1 insertion(+)

Detailed changes

crates/editor/src/editor.rs 🔗

@@ -2834,6 +2834,7 @@ impl Editor {
 
     fn next_copilot_suggestion(&mut self, _: &copilot::NextSuggestion, cx: &mut ViewContext<Self>) {
         if self.copilot_state.completions.is_empty() {
+            self.refresh_copilot_suggestions(cx);
             return;
         }