edit predictions: Cache settings across renders (#24581)
We were reading edit prediction settings too often, causing frames to be dropped. We'll now cache them and update them from `update_visible_inline_completion`. Release Notes: - N/A
This commit is contained in:
parent
973cb916f3
commit
0af048a7cf
10 changed files with 124 additions and 102 deletions
|
@ -1345,7 +1345,7 @@ impl InlineAssistant {
|
|||
editor.scroll_manager.set_forbid_vertical_scroll(true);
|
||||
editor.set_show_scrollbars(false, cx);
|
||||
editor.set_read_only(true);
|
||||
editor.set_show_inline_completions(Some(false), window, cx);
|
||||
editor.set_show_edit_predictions(Some(false), window, cx);
|
||||
editor.highlight_rows::<DeletedLines>(
|
||||
Anchor::min()..Anchor::max(),
|
||||
cx.theme().status().deleted_background,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue