Adding correct line numbers for errors

This commit is contained in:
benrr101
2016-08-22 13:04:12 -07:00
parent 91ed9aea59
commit 51defc1032
2 changed files with 10 additions and 3 deletions

View File

@@ -117,7 +117,7 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution
{
BatchSeparator = settings.BatchSeparator
});
Batches = parseResult.Script.Batches.Select(b => new Batch(b.Sql)).ToArray();
Batches = parseResult.Script.Batches.Select(b => new Batch(b.Sql, b.StartLocation.LineNumber)).ToArray();
}
/// <summary>