Fix manual copilot with show_inline_completions: false (#16621)

For @mre and friends!

Release Notes:

- Fixed manually trigging completions when `show_inline_completions:
false`
This commit is contained in:
Conrad Irwin 2024-08-21 20:27:19 -06:00 committed by GitHub
parent 136f75ee9a
commit eb9eae09b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 24 additions and 21 deletions

View file

@ -1060,7 +1060,7 @@ mod tests {
editor.change_selections(None, cx, |selections| {
selections.select_ranges([Point::new(0, 0)..Point::new(0, 0)])
});
editor.next_inline_completion(&Default::default(), cx);
editor.refresh_inline_completion(true, false, cx);
});
executor.advance_clock(COPILOT_DEBOUNCE_TIMEOUT);
@ -1070,7 +1070,7 @@ mod tests {
editor.change_selections(None, cx, |s| {
s.select_ranges([Point::new(2, 0)..Point::new(2, 0)])
});
editor.next_inline_completion(&Default::default(), cx);
editor.refresh_inline_completion(true, false, cx);
});
executor.advance_clock(COPILOT_DEBOUNCE_TIMEOUT);