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.
2 parents 7123cac + f4964ac commit 88cb6c2Copy full SHA for 88cb6c2
Rubberduck.Parsing/VBA/RubberduckParserState.cs
@@ -83,10 +83,18 @@ public void AddProject(VBProject project)
83
return;
84
}
85
86
+ //assign a hashcode if no helpfile is present
87
if (string.IsNullOrEmpty(project.HelpFile))
88
{
89
project.HelpFile = project.GetHashCode().ToString();
90
91
+
92
+ //loop until the helpfile is unique for this host session
93
+ while (_projects.Any(a => a.Key == project.HelpFile))
94
+ {
95
+ project.HelpFile = (project.GetHashCode() ^ project.HelpFile.GetHashCode()).ToString();
96
+ }
97
98
var projectId = project.HelpFile;
99
if (!_projects.ContainsKey(projectId))
100
0 commit comments