We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6618af5 commit 8ca728cCopy full SHA for 8ca728c
RetailCoder.VBE/UI/Refactorings/Rename/RenamePresenter.cs
@@ -244,7 +244,9 @@ private void PromptIfTargetImplementsInterface(ref Declaration target)
244
245
private bool IsSelectedReference(QualifiedSelection selection, Declaration declaration)
246
{
247
- return declaration.References.Any(r => r.Selection.ContainsFirstCharacter(selection.Selection));
+ return declaration.References.Any(r =>
248
+ r.QualifiedModuleName == selection.QualifiedName &&
249
+ r.Selection.ContainsFirstCharacter(selection.Selection));
250
}
251
252
private bool IsSelectedDeclaration(QualifiedSelection selection, Declaration declaration)
0 commit comments