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:
parent
c208532693
commit
450a10facf
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue