File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
PowerShellEditorServices.Transport.Stdio/Event
PowerShellEditorServices/Analysis Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ public static DiagnosticEventBody Create(
61
61
new Diagnostic
62
62
{
63
63
Text = diagnosticMarker . Message ,
64
+ Severity = ( int ) diagnosticMarker . Level + 1 ,
64
65
Start = new Location
65
66
{
66
67
Line = diagnosticMarker . ScriptRegion . StartLineNumber ,
@@ -97,5 +98,7 @@ public class Diagnostic
97
98
public Location End { get ; set ; }
98
99
99
100
public string Text { get ; set ; }
101
+
102
+ public int Severity { get ; set ; }
100
103
}
101
104
}
Original file line number Diff line number Diff line change @@ -40,7 +40,10 @@ public AnalysisService(Runspace analysisRunspace)
40
40
this . scriptAnalyzer = new ScriptAnalyzer ( ) ;
41
41
this . scriptAnalyzer . Initialize (
42
42
analysisRunspace ,
43
- new AnalysisOutputWriter ( ) ) ;
43
+ new AnalysisOutputWriter ( ) ,
44
+ null ,
45
+ null ,
46
+ new string [ ] { "DscTestsPresent" , "DscExamplesPresent" } ) ;
44
47
}
45
48
46
49
#endregion
You can’t perform that action at this time.
0 commit comments