zeta: Improve UX for simultaneous LSP and prediction completions (#24024)
Release Notes: - N/A --------- Co-authored-by: Michael Sloan <michael@zed.dev> Co-authored-by: Danilo <danilo@zed.dev> Co-authored-by: Richard <richard@zed.dev>
This commit is contained in:
parent
b6e680ea3d
commit
4c29e1ff07
16 changed files with 1196 additions and 762 deletions
|
@ -3441,7 +3441,7 @@ mod test {
|
|||
let range = editor.selections.newest_anchor().range();
|
||||
let inlay_text = " field: int,\n field2: string\n field3: float";
|
||||
let inlay = Inlay::inline_completion(1, range.start, inlay_text);
|
||||
editor.splice_inlays(vec![], vec![inlay], cx);
|
||||
editor.splice_inlays(&[], vec![inlay], cx);
|
||||
});
|
||||
|
||||
cx.simulate_keystrokes("j");
|
||||
|
@ -3473,7 +3473,7 @@ mod test {
|
|||
snapshot.anchor_after(Point::new(0, snapshot.line_len(MultiBufferRow(0))));
|
||||
let inlay_text = " hint";
|
||||
let inlay = Inlay::inline_completion(1, end_of_line, inlay_text);
|
||||
editor.splice_inlays(vec![], vec![inlay], cx);
|
||||
editor.splice_inlays(&[], vec![inlay], cx);
|
||||
});
|
||||
cx.simulate_keystrokes("$");
|
||||
cx.assert_state(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue