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
This commit is contained in:
Joseph T. Lyons 2025-05-26 23:59:44 -04:00 committed by GitHub
parent c208532693
commit 450a10facf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19812,7 +19812,7 @@ impl SemanticsProvider for Entity<Project> {
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) {