Skip to content

Commit

Permalink
Merge pull request #785 from SMI/reviewer-fixes
Browse files Browse the repository at this point in the history
Disabled tree rebuilding until loading is complete
  • Loading branch information
rkm authored Jun 11, 2021
2 parents 7456aa2 + 10a2d5d commit 88943fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions news/785-bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed bug with multiple enumeration during loading very large failure reports in IsIdentifiableReviewer
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,6 @@ private void EvaluateRuleCoverage()

AddDuplicatesToTree(allRules);

_treeView.AddObjects(new []{ colliding,ignore,update,outstanding});

var cts = new CancellationTokenSource();

Expand All @@ -354,21 +353,23 @@ private void EvaluateRuleCoverage()

Application.MainLoop.AddTimeout(TimeSpan.FromSeconds(1), (s) =>
{
_treeView.RebuildTree();
dlg.SetNeedsDisplay();
return !done;
});

Task.Run(()=>{
EvaluateRuleCoverageAsync(stage,progress,textProgress,cts.Token,colliding,ignore,update,outstanding);
},cts.Token).ContinueWith((t)=>{
},cts.Token).ContinueWith((t,s)=>{
btn.Clicked -= cancelFunc;
btn.Text = "Done";
btn.Clicked += closeFunc;
done = true;
cts.Dispose();
});
_treeView.RebuildTree();
_treeView.AddObjects(new[] { colliding, ignore, update, outstanding });
},SynchronizationContext.Current);

Application.Run(dlg);
}
Expand Down

0 comments on commit 88943fe

Please sign in to comment.