Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Commit

Permalink
Reacting to ICompilationMessage line indexes changing to be 1-based.
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavkm committed Apr 8, 2015
1 parent a8d5bb9 commit 8c8992f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ public class RazorCompilationMessage : ICompilationMessage
$"{sourceFilePath} ({location.LineIndex},{location.CharacterIndex}) {razorError.Message}";

StartColumn = location.CharacterIndex;
StartLine = location.LineIndex;
StartLine = location.LineIndex + 1;
EndColumn = location.CharacterIndex + razorError.Length;
EndLine = location.LineIndex;
EndLine = location.LineIndex + 1;
}

/// <summary>
Expand Down

0 comments on commit 8c8992f

Please sign in to comment.