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
|
@ -611,7 +611,7 @@ impl InlineCompletionButton {
|
|||
.unwrap_or(true),
|
||||
)
|
||||
};
|
||||
self.editor_show_predictions = editor.should_show_inline_completions(cx);
|
||||
self.editor_show_predictions = editor.edit_predictions_enabled();
|
||||
self.edit_prediction_provider = editor.edit_prediction_provider();
|
||||
self.language = language.cloned();
|
||||
self.file = file;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue