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:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user