Skip to content

Commit 6059bf2

Browse files
committed
add options
1 parent 8d4b1bb commit 6059bf2

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

SharedProject/Core/ReportGenerator/ReportGeneratorUtil.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,7 @@ function getCellValue(row, index){{
845845
var config = {{ attributes: false, childList: true, subtree: true }};
846846
847847
var callback = function(mutationsList, observer) {{
848+
console.log(""mutation observer hide fully covered"");
848849
var rows = document.querySelectorAll(""coverage-info table tbody tr"");
849850
for(var i=0;i<rows.length;i++){{
850851
var row = rows[i];
@@ -897,7 +898,7 @@ private string ObserveAndHideNamespaceWhenGroupingByNamespace()
897898
if(!groupingInput || groupingInput.value == 0){{
898899
return;
899900
}}
900-
901+
console.log(""mutation observer namespace"");
901902
var rows = document.querySelectorAll(""coverage-info table tbody tr[class-row]"");
902903
for(var i=0;i<rows.length;i++){{
903904
var row = rows[i];

SharedProject/Options/AppOptionsPage.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,13 @@ You can also ignore additional attributes by adding to this list (short name or
263263
public bool StickyCoverageTable { get; set; }
264264

265265
[Category(commonReportCategory)]
266-
[Description("Set to false to show classes in report in short form.")]
266+
[Description("Set to false to show types in report in short form.")]
267267
public bool NamespacedClasses { get; set; }
268268

269+
[Category(commonReportCategory)]
270+
[Description("Control qualification of types when NamespacedClasses is true.")]
271+
public GroupingNamespaceQualification GroupingNamespaceQualification { get; set; }
272+
269273
[Category(commonReportCategory)]
270274
[Description("Set to true to hide classes, namespaces and assemblies that are fully covered.")]
271275
public bool HideFullyCovered { get; set; }

SharedProject/Options/AppOptionsProvider.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,5 +209,6 @@ internal class AppOptions : IAppOptions
209209
public bool ShowToolWindowToolbar { get; set; }
210210
public string[] ExcludeAssemblies { get; set; }
211211
public string[] IncludeAssemblies { get; set; }
212+
public GroupingNamespaceQualification GroupingNamespaceQualification { get; set; }
212213
}
213214
}

SharedProject/Options/IAppOptions.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,15 @@ internal interface IAppOptions : IMsCodeCoverageOptions, IOpenCoverCoverletExclu
6565
bool AdjacentBuildOutput { get; set; }
6666
RunMsCodeCoverage RunMsCodeCoverage { get; set; }
6767
bool ShowToolWindowToolbar { get; set; }
68+
69+
GroupingNamespaceQualification GroupingNamespaceQualification { get; set; }
70+
}
71+
72+
internal enum GroupingNamespaceQualification
73+
{
74+
FullyQualified,
75+
AlwaysUnqualified,
76+
UnqualifiedByNamespace,
77+
QualifiedByNamespaceLevel
6878
}
6979
}

0 commit comments

Comments
 (0)