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 8d9bc9d commit f4964acCopy full SHA for f4964ac
Rubberduck.Parsing/VBA/RubberduckParserState.cs
@@ -83,7 +83,14 @@ public void AddProject(VBProject project)
83
return;
84
}
85
86
- while (string.IsNullOrEmpty(project.HelpFile) || _projects.Any(a => a.Key == project.HelpFile))
+ //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
0 commit comments