Skip to content

Commit ccf17f5

Browse files
committed
Conflict elements must be in same project
1 parent 1d49155 commit ccf17f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Rubberduck.Parsing/VBA/DeclarationCaching/DeclarationFinder.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,6 +1302,7 @@ public IEnumerable<Declaration> FindNewDeclarationNameConflicts(string newName,
13021302
return Enumerable.Empty<Declaration>();
13031303
}
13041304

1305+
var identifierMatches = MatchName(newName).Where(match => match.Project == renameTarget.Project);
13051306

13061307
if (!identifierMatches.Any())
13071308
{

0 commit comments

Comments
 (0)