Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

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

Antonio Scandurra034bc75467f8
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index cfe803adfc2..fca43214222 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<Self>) {
if self.copilot_state.completions.is_empty() {
+ self.refresh_copilot_suggestions(cx);
return;
}