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
57
57
/// </summary>
58
58
public class TspVisibility
59
59
{
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
+
60
66
/// <summary>
61
67
/// True if the message should be displayed on the status page (defaults to false).
62
68
/// </summary>
@@ -166,7 +172,7 @@ public DiagnosticMessage(
166
172
this . HelpLinks = new List < string > ( ) ;
167
173
this . Attributes = new Dictionary < string , object > ( ) ;
168
174
this . Severity = severity ;
169
- this . Visibility = visibility ?? new TspVisibility ( statusPage : true ) ;
175
+ this . Visibility = visibility ?? TspVisibility . All ;
170
176
this . Location = location ?? new TspLocation ( ) ;
171
177
this . Internal = intrnl ?? false ;
172
178
this . MarkdownMessage = markdownMessage ;
Original file line number Diff line number Diff line change 11
11
"name": "Some projects are incompatible with .NET Core"
12
12
},
13
13
"visibility": {
14
- "statusPage": true
14
+ "cliSummaryTable": true,
15
+ "statusPage": true,
16
+ "telemetry": true
15
17
}
16
18
}
17
19
{
27
29
"name": "Some projects or solutions failed to build using MSBuild"
28
30
},
29
31
"visibility": {
30
- "statusPage": true
32
+ "cliSummaryTable": true,
33
+ "statusPage": true,
34
+ "telemetry": true
31
35
}
32
36
}
Original file line number Diff line number Diff line change 11
11
"name": "Some projects or solutions failed to build using MSBuild"
12
12
},
13
13
"visibility": {
14
- "statusPage": true
14
+ "cliSummaryTable": true,
15
+ "statusPage": true,
16
+ "telemetry": true
15
17
}
16
18
}
17
19
{
27
29
"name": "Missing project files"
28
30
},
29
31
"visibility": {
30
- "statusPage": true
32
+ "cliSummaryTable": true,
33
+ "statusPage": true,
34
+ "telemetry": true
31
35
}
32
36
}
Original file line number Diff line number Diff line change 11
11
"name": "Some projects or solutions failed to build using .NET Core"
12
12
},
13
13
"visibility": {
14
- "statusPage": true
14
+ "cliSummaryTable": true,
15
+ "statusPage": true,
16
+ "telemetry": true
15
17
}
16
18
}
17
19
{
27
29
"name": "Some projects or solutions failed to build using MSBuild"
28
30
},
29
31
"visibility": {
30
- "statusPage": true
32
+ "cliSummaryTable": true,
33
+ "statusPage": true,
34
+ "telemetry": true
31
35
}
32
36
}
33
37
{
43
47
"name": "Missing Xamarin SDK for iOS"
44
48
},
45
49
"visibility": {
46
- "statusPage": true
50
+ "cliSummaryTable": true,
51
+ "statusPage": true,
52
+ "telemetry": true
47
53
}
48
54
}
Original file line number Diff line number Diff line change 11
11
"name": "Unable to build project using build script"
12
12
},
13
13
"visibility": {
14
- "statusPage": true
14
+ "cliSummaryTable": true,
15
+ "statusPage": true,
16
+ "telemetry": true
15
17
}
16
18
}
17
19
{
27
29
"name": "No project or solutions files found"
28
30
},
29
31
"visibility": {
30
- "statusPage": true
32
+ "cliSummaryTable": true,
33
+ "statusPage": true,
34
+ "telemetry": true
31
35
}
32
36
}
Original file line number Diff line number Diff line change 11
11
"name": "No project or solutions files found"
12
12
},
13
13
"visibility": {
14
- "statusPage": true
14
+ "cliSummaryTable": true,
15
+ "statusPage": true,
16
+ "telemetry": true
15
17
}
16
18
}
17
19
{
27
29
"name": "There are multiple potential build scripts"
28
30
},
29
31
"visibility": {
30
- "statusPage": true
32
+ "cliSummaryTable": true,
33
+ "statusPage": true,
34
+ "telemetry": true
31
35
}
32
36
}
Original file line number Diff line number Diff line change 11
11
"name": "Unable to build project using build script"
12
12
},
13
13
"visibility": {
14
- "statusPage": true
14
+ "cliSummaryTable": true,
15
+ "statusPage": true,
16
+ "telemetry": true
15
17
}
16
18
}
17
19
{
27
29
"name": "No project or solutions files found"
28
30
},
29
31
"visibility": {
30
- "statusPage": true
32
+ "cliSummaryTable": true,
33
+ "statusPage": true,
34
+ "telemetry": true
31
35
}
32
36
}
Original file line number Diff line number Diff line change 11
11
"name": "No project or solutions files found"
12
12
},
13
13
"visibility": {
14
- "statusPage": true
14
+ "cliSummaryTable": true,
15
+ "statusPage": true,
16
+ "telemetry": true
15
17
}
16
18
}
17
19
{
27
29
"name": "There are multiple potential build scripts"
28
30
},
29
31
"visibility": {
30
- "statusPage": true
32
+ "cliSummaryTable": true,
33
+ "statusPage": true,
34
+ "telemetry": true
31
35
}
32
36
}
You can’t perform that action at this time.
0 commit comments