@@ -19,7 +19,7 @@ internal enum ReloadCoverageStatus { Start, Done, Cancelled, Error, Initializing
1919
2020 internal class NewCoverageLinesMessage
2121 {
22- public List < CoverageLine > CoverageLines { get ; set ; }
22+ public Dictionary < string , List < CoverageLine > > CoverageLines { get ; set ; }
2323 }
2424
2525 internal class DisplayCoverageResultState
@@ -202,12 +202,12 @@ private void ClearCoverageLines()
202202 RaiseCoverageLines ( null ) ;
203203 }
204204
205- private void RaiseCoverageLines ( List < CoverageLine > coverageLines )
205+ private void RaiseCoverageLines ( Dictionary < string , List < CoverageLine > > coverageLines )
206206 {
207207 eventAggregator . SendMessage ( new NewCoverageLinesMessage { CoverageLines = coverageLines } ) ;
208208 }
209209
210- private void UpdateUI ( List < CoverageLine > coverageLines , string reportHtml )
210+ private void UpdateUI ( Dictionary < string , List < CoverageLine > > coverageLines , string reportHtml )
211211 {
212212 RaiseCoverageLines ( coverageLines ) ;
213213 if ( reportHtml == null )
@@ -217,18 +217,18 @@ private void UpdateUI(List<CoverageLine> coverageLines, string reportHtml)
217217 RaiseUpdateOutputWindow ( reportHtml ) ;
218218 }
219219
220- private async System . Threading . Tasks . Task < ( List < CoverageLine > coverageLines , string reportFilePath ) > RunAndProcessReportAsync ( string [ ] coverOutputFiles , CancellationToken vsShutdownLinkedCancellationToken )
220+ private async System . Threading . Tasks . Task < ( Dictionary < string , List < CoverageLine > > coverageLines , string reportFilePath ) > RunAndProcessReportAsync ( string [ ] coverOutputFiles , CancellationToken vsShutdownLinkedCancellationToken )
221221 {
222222 var reportOutputFolder = coverageOutputManager . GetReportOutputFolder ( ) ;
223223 vsShutdownLinkedCancellationToken . ThrowIfCancellationRequested ( ) ;
224224 var result = await reportGeneratorUtil . GenerateAsync ( coverOutputFiles , reportOutputFolder , vsShutdownLinkedCancellationToken ) ;
225225
226226 vsShutdownLinkedCancellationToken . ThrowIfCancellationRequested ( ) ;
227- logger . Log ( "Processing cobertura" ) ;
227+ logger . Log ( $ "Processing cobertura") ;
228228 var coverageLines = coberturaUtil . ProcessCoberturaXml ( result . UnifiedXmlFile ) ;
229229
230230 vsShutdownLinkedCancellationToken . ThrowIfCancellationRequested ( ) ;
231- logger . Log ( "Processing report" ) ;
231+ logger . Log ( $ "Processing report") ;
232232 string processedReport = reportGeneratorUtil . ProcessUnifiedHtml ( result . UnifiedHtml , reportOutputFolder ) ;
233233 return ( coverageLines , processedReport ) ;
234234 }
@@ -262,7 +262,7 @@ private async System.Threading.Tasks.Task PrepareCoverageProjectsAsync(List<ICov
262262 }
263263 }
264264
265- private void DisplayCoverageResult ( System . Threading . Tasks . Task < ( List < CoverageLine > coverageLines , string reportHtml ) > t , object state )
265+ private void DisplayCoverageResult ( System . Threading . Tasks . Task < ( Dictionary < string , List < CoverageLine > > coverageLines , string reportHtml ) > t , object state )
266266 {
267267 var displayCoverageResultState = ( DisplayCoverageResultState ) state ;
268268 if ( ! IsVsShutdown )
@@ -321,7 +321,7 @@ public void RunAndProcessReport(string[] coberturaFiles, Action cleanUp = null)
321321 {
322322 RunCancellableCoverageTask ( async ( vsShutdownLinkedCancellationToken ) =>
323323 {
324- List < CoverageLine > coverageLines = null ;
324+ Dictionary < string , List < CoverageLine > > coverageLines = null ;
325325 string reportHtml = null ;
326326
327327 if ( coberturaFiles . Any ( ) )
@@ -333,7 +333,7 @@ public void RunAndProcessReport(string[] coberturaFiles, Action cleanUp = null)
333333 }
334334
335335 private void RunCancellableCoverageTask (
336- Func < CancellationToken , System . Threading . Tasks . Task < ( List < CoverageLine > , string ) > > taskCreator , Action cleanUp )
336+ Func < CancellationToken , System . Threading . Tasks . Task < ( Dictionary < string , List < CoverageLine > > , string ) > > taskCreator , Action cleanUp )
337337 {
338338 var vsLinkedCancellationTokenSource = Reset ( ) ;
339339 var vsShutdownLinkedCancellationToken = vsLinkedCancellationTokenSource . Token ;
@@ -355,7 +355,7 @@ public void ReloadCoverage(Func<System.Threading.Tasks.Task<List<ICoverageProjec
355355 {
356356 RunCancellableCoverageTask ( async ( vsShutdownLinkedCancellationToken ) =>
357357 {
358- List < CoverageLine > coverageLines = null ;
358+ Dictionary < string , List < CoverageLine > > coverageLines = null ;
359359 string reportHtml = null ;
360360
361361 await PollInitializedStatusAsync ( vsShutdownLinkedCancellationToken ) ;
0 commit comments