Skip to content

Commit a9f974c

Browse files
author
Kayla Davis
committed
Fixing sementic highlighting
1 parent 6b24cd3 commit a9f974c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/PowerShellEditorServices.Transport.Stdio/Event/DiagnosticEvent.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

src/PowerShellEditorServices/Analysis/AnalysisService.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)