Reacting to ICompilationMessage line indexes changing to be 1-based.
This commit is contained in:
parent
a8d5bb934d
commit
8c8992fa9c
|
|
@ -29,9 +29,9 @@ namespace Microsoft.AspNet.Mvc.Razor
|
|||
$"{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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue