Skip to content

Commit

Permalink
add check to not throw assembly changes away
Browse files Browse the repository at this point in the history
  • Loading branch information
IXLLEGACYIXL committed Jan 14, 2024
1 parent 2ca2766 commit 594e9a1
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,18 @@ private async Task BatchChanges()

// Merge files that were modified multiple time
assemblyChanges = assemblyChanges.GroupBy(x => x.ChangedFile).Select(x => x.Last()).ToList();

// the assembly changes got allready picked up
if (Events == null)
{
Events = assemblyChanges;
}
// the assembly changes didn't get picked up
else
{
Events.AddRange(assemblyChanges);
}

Events = assemblyChanges;
AssembliesChangedBroadcast.Post(assemblyChanges);
}
Expand Down

0 comments on commit 594e9a1

Please sign in to comment.