Skip to content

Commit 36fb629

Browse files
committed
Fix diagnostic message level numbering
In more recent VS Code builds, diagnostic message levels have been shifted from being 1-based to 0-based. This fix responds to that change.
1 parent 8034cf7 commit 36fb629

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public static DiagnosticEventBody Create(
6161
new Diagnostic
6262
{
6363
Text = diagnosticMarker.Message,
64-
Severity = (int)diagnosticMarker.Level + 1,
64+
Severity = (int)diagnosticMarker.Level,
6565
Start = new Location
6666
{
6767
Line = diagnosticMarker.ScriptRegion.StartLineNumber,

0 commit comments

Comments
 (0)