From 450a10facf6a9b2be32df711db7fc57bc0ab7380 Mon Sep 17 00:00:00 2001 From: "Joseph T. Lyons" Date: Mon, 26 May 2025 23:59:44 -0400 Subject: [PATCH] Revert to calling .update in eval fixture (#31483) Looks like I accidentally touched a line of code in an eval fixture in #31479, despite intentionally trying to avoid that code. Thanks @cole-miller! Release Notes: - N/A --- .../edit_agent/evals/fixtures/disable_cursor_blinking/before.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/assistant_tools/src/edit_agent/evals/fixtures/disable_cursor_blinking/before.rs b/crates/assistant_tools/src/edit_agent/evals/fixtures/disable_cursor_blinking/before.rs index 9481267a41..607daa8ce3 100644 --- a/crates/assistant_tools/src/edit_agent/evals/fixtures/disable_cursor_blinking/before.rs +++ b/crates/assistant_tools/src/edit_agent/evals/fixtures/disable_cursor_blinking/before.rs @@ -19812,7 +19812,7 @@ impl SemanticsProvider for Entity { PrepareRenameResponse::InvalidPosition => None, PrepareRenameResponse::OnlyUnpreparedRenameSupported => { // Fallback on using TreeSitter info to determine identifier range - buffer.read_with(cx, |buffer, _| { + buffer.update(cx, |buffer, _| { let snapshot = buffer.snapshot(); let (range, kind) = snapshot.surrounding_word(position); if kind != Some(CharKind::Word) {