Overhaul inline assistant (#12846)
This pull request introduces a new diff mechanism that helps users understand exactly which lines were changed by the LLM. Release Notes: - N/A
This commit is contained in:
parent
3722275cfa
commit
98659eabf1
14 changed files with 824 additions and 176 deletions
|
@ -1222,6 +1222,10 @@ impl Context {
|
|||
}
|
||||
}
|
||||
|
||||
pub(crate) fn token_count(&self) -> Option<usize> {
|
||||
self.token_count
|
||||
}
|
||||
|
||||
pub(crate) fn count_remaining_tokens(&mut self, cx: &mut ModelContext<Self>) {
|
||||
let request = self.to_completion_request(cx);
|
||||
self.pending_token_count = cx.spawn(|this, mut cx| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue