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:
parent
136f75ee9a
commit
eb9eae09b1
3 changed files with 24 additions and 21 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue