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.

Fix delay in Copilot completion (#46885)

Hieu Pham4a2d1e3747c3
diff --git a/crates/copilot/src/copilot.rs b/crates/copilot/src/copilot.rs
index 759c2d9d534..767f4dbab30 100644
--- a/crates/copilot/src/copilot.rs
+++ b/crates/copilot/src/copilot.rs
@@ -1021,7 +1021,7 @@ impl Copilot {
}
inline = inline_request => {
let completions = inline.into_response().ok().map(convert_inline).unwrap_or_default();
- if !completions.is_empty() && nes_result.is_some() {
+ if !completions.is_empty() {
return Ok(completions);
}
inline_result = Some(completions);