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(
6161 new Diagnostic
6262 {
6363 Text = diagnosticMarker . Message ,
64+ Severity = ( int ) diagnosticMarker . Level + 1 ,
6465 Start = new Location
6566 {
6667 Line = diagnosticMarker . ScriptRegion . StartLineNumber ,
@@ -97,5 +98,7 @@ public class Diagnostic
9798 public Location End { get ; set ; }
9899
99100 public string Text { get ; set ; }
101+
102+ public int Severity { get ; set ; }
100103 }
101104}
Original file line number Diff line number Diff line change @@ -40,7 +40,10 @@ public AnalysisService(Runspace analysisRunspace)
4040 this . scriptAnalyzer = new ScriptAnalyzer ( ) ;
4141 this . scriptAnalyzer . Initialize (
4242 analysisRunspace ,
43- new AnalysisOutputWriter ( ) ) ;
43+ new AnalysisOutputWriter ( ) ,
44+ null ,
45+ null ,
46+ new string [ ] { "DscTestsPresent" , "DscExamplesPresent" } ) ;
4447 }
4548
4649 #endregion
You can’t perform that action at this time.
0 commit comments