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
0af048a7cfAgus Zubiaga committed on 2/10/2025, 8:57:25 PM· committed by GitHubparent973cb91
10 files changedLine totals unavailable