Clear completion if model doesn't produce any edit (#21925)
Release Notes: - N/A
This commit is contained in:
parent
bcf8a2f9fc
commit
b4c8e04544
1 changed files with 4 additions and 1 deletions
|
@ -965,7 +965,6 @@ impl inline_completion::InlineCompletionProvider for ZetaInlineCompletionProvide
|
||||||
}
|
}
|
||||||
|
|
||||||
this.update(&mut cx, |this, cx| {
|
this.update(&mut cx, |this, cx| {
|
||||||
cx.notify();
|
|
||||||
this.first_pending_completion = None;
|
this.first_pending_completion = None;
|
||||||
if !is_first {
|
if !is_first {
|
||||||
this.last_pending_completion = None;
|
this.last_pending_completion = None;
|
||||||
|
@ -986,7 +985,11 @@ impl inline_completion::InlineCompletionProvider for ZetaInlineCompletionProvide
|
||||||
});
|
});
|
||||||
this.current_completion = Some(new_completion);
|
this.current_completion = Some(new_completion);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
this.current_completion = None;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cx.notify();
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue