Clear completion if model doesn't produce any edit (#21925)
Release Notes: - N/A
This commit is contained in:
@@ -965,7 +965,6 @@ impl inline_completion::InlineCompletionProvider for ZetaInlineCompletionProvide
|
||||
}
|
||||
|
||||
this.update(&mut cx, |this, cx| {
|
||||
cx.notify();
|
||||
this.first_pending_completion = None;
|
||||
if !is_first {
|
||||
this.last_pending_completion = None;
|
||||
@@ -986,7 +985,11 @@ impl inline_completion::InlineCompletionProvider for ZetaInlineCompletionProvide
|
||||
});
|
||||
this.current_completion = Some(new_completion);
|
||||
}
|
||||
} else {
|
||||
this.current_completion = None;
|
||||
}
|
||||
|
||||
cx.notify();
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user