Skip to content

Find All References may fail to find references after a rename #12480

@sean-mcmanus

Description

@sean-mcmanus
  1. Do a Find All Refs (note the number found).
  2. Do a Rename with files.refactoring.autoSave set to false.
  3. Wait for any tag parsing to finish.
  4. Do a Find All Refs on the new name.

Bug: Somewhat randomly, the Find All Refs will be missing results, i.e. the database is not in a valid state and is missing the symbols for certain files. The database appears to become updated/correct after the files with missing references are opened or somehow have their file tag parsed again.

I repro it in 1.20.5 to 1.21.1+.

Metadata

Metadata

Assignees

Labels

Feature: Doc commentsAn issue related to code comments shown in hover, completion, and signature help.Feature: Find All ReferencesFind All References, Peek References, RenameLanguage ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.parserverifiedBug has been reproduced

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions