I'm facing a weird situation, where not all of my referenced variables are renamed. I have a working ReferenceContributor for both, references of variables and references of variable names inside strings. Here is a short code, where the arrows indicate, that all variable usages are resolved to the first "foo"
As you can see all variable references are correctly highlighted by "Highlight element under caret" and indeed, when I when I start to rename, it seems everything works
Unfortunately, the moment I press Enter, the last "newName" is not renamed. I could pin the problem down to
I have no idea, why this search doesn't find all references when Show Usage and other features work fine.
Why is that and how can I fix it?