mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-16 01:25:41 -05:00
Adding correct line numbers for errors
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user