File tree Expand file tree Collapse file tree 8 files changed +52
-16
lines changed
diag_missing_project_files Expand file tree Collapse file tree 8 files changed +52
-16
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,12 @@ public enum TspSeverity
5757 /// </summary>
5858 public class TspVisibility
5959 {
60+ /// <summary>
61+ /// A read-only instance of <see cref="TspVisibility" /> which indicates that the
62+ /// diagnostic should be used in all supported locations.
63+ /// </summary>
64+ public static readonly TspVisibility All = new ( true , true , true ) ;
65+
6066 /// <summary>
6167 /// True if the message should be displayed on the status page (defaults to false).
6268 /// </summary>
@@ -166,7 +172,7 @@ public DiagnosticMessage(
166172 this . HelpLinks = new List < string > ( ) ;
167173 this . Attributes = new Dictionary < string , object > ( ) ;
168174 this . Severity = severity ;
169- this . Visibility = visibility ?? new TspVisibility ( statusPage : true ) ;
175+ this . Visibility = visibility ?? TspVisibility . All ;
170176 this . Location = location ?? new TspLocation ( ) ;
171177 this . Internal = intrnl ?? false ;
172178 this . MarkdownMessage = markdownMessage ;
Original file line number Diff line number Diff line change 1111 "name": "Some projects are incompatible with .NET Core"
1212 },
1313 "visibility": {
14- "statusPage": true
14+ "cliSummaryTable": true,
15+ "statusPage": true,
16+ "telemetry": true
1517 }
1618}
1719{
2729 "name": "Some projects or solutions failed to build using MSBuild"
2830 },
2931 "visibility": {
30- "statusPage": true
32+ "cliSummaryTable": true,
33+ "statusPage": true,
34+ "telemetry": true
3135 }
3236}
Original file line number Diff line number Diff line change 1111 "name": "Some projects or solutions failed to build using MSBuild"
1212 },
1313 "visibility": {
14- "statusPage": true
14+ "cliSummaryTable": true,
15+ "statusPage": true,
16+ "telemetry": true
1517 }
1618}
1719{
2729 "name": "Missing project files"
2830 },
2931 "visibility": {
30- "statusPage": true
32+ "cliSummaryTable": true,
33+ "statusPage": true,
34+ "telemetry": true
3135 }
3236}
Original file line number Diff line number Diff line change 1111 "name": "Some projects or solutions failed to build using .NET Core"
1212 },
1313 "visibility": {
14- "statusPage": true
14+ "cliSummaryTable": true,
15+ "statusPage": true,
16+ "telemetry": true
1517 }
1618}
1719{
2729 "name": "Some projects or solutions failed to build using MSBuild"
2830 },
2931 "visibility": {
30- "statusPage": true
32+ "cliSummaryTable": true,
33+ "statusPage": true,
34+ "telemetry": true
3135 }
3236}
3337{
4347 "name": "Missing Xamarin SDK for iOS"
4448 },
4549 "visibility": {
46- "statusPage": true
50+ "cliSummaryTable": true,
51+ "statusPage": true,
52+ "telemetry": true
4753 }
4854}
Original file line number Diff line number Diff line change 1111 "name": "Unable to build project using build script"
1212 },
1313 "visibility": {
14- "statusPage": true
14+ "cliSummaryTable": true,
15+ "statusPage": true,
16+ "telemetry": true
1517 }
1618}
1719{
2729 "name": "No project or solutions files found"
2830 },
2931 "visibility": {
30- "statusPage": true
32+ "cliSummaryTable": true,
33+ "statusPage": true,
34+ "telemetry": true
3135 }
3236}
Original file line number Diff line number Diff line change 1111 "name": "No project or solutions files found"
1212 },
1313 "visibility": {
14- "statusPage": true
14+ "cliSummaryTable": true,
15+ "statusPage": true,
16+ "telemetry": true
1517 }
1618}
1719{
2729 "name": "There are multiple potential build scripts"
2830 },
2931 "visibility": {
30- "statusPage": true
32+ "cliSummaryTable": true,
33+ "statusPage": true,
34+ "telemetry": true
3135 }
3236}
Original file line number Diff line number Diff line change 1111 "name": "Unable to build project using build script"
1212 },
1313 "visibility": {
14- "statusPage": true
14+ "cliSummaryTable": true,
15+ "statusPage": true,
16+ "telemetry": true
1517 }
1618}
1719{
2729 "name": "No project or solutions files found"
2830 },
2931 "visibility": {
30- "statusPage": true
32+ "cliSummaryTable": true,
33+ "statusPage": true,
34+ "telemetry": true
3135 }
3236}
Original file line number Diff line number Diff line change 1111 "name": "No project or solutions files found"
1212 },
1313 "visibility": {
14- "statusPage": true
14+ "cliSummaryTable": true,
15+ "statusPage": true,
16+ "telemetry": true
1517 }
1618}
1719{
2729 "name": "There are multiple potential build scripts"
2830 },
2931 "visibility": {
30- "statusPage": true
32+ "cliSummaryTable": true,
33+ "statusPage": true,
34+ "telemetry": true
3135 }
3236}
You can’t perform that action at this time.
0 commit comments