fix edge case for single batch multi line (#540)

This commit is contained in:
Anthony Dresser
2017-12-06 16:28:07 -08:00
committed by GitHub
parent 90611034cf
commit 8b148090fd

View File

@@ -43,7 +43,7 @@ namespace Microsoft.SqlTools.ServiceLayer.BatchParser
// Generate the first batch definition list // Generate the first batch definition list
int startLine = batchInfos[0].startLine + 1; //positions is 0 index based int startLine = batchInfos[0].startLine + 1; //positions is 0 index based
int endLine = startLine; int endLine = startLine;
int lineDifference = startLine - 1; int lineDifference = 0;
int endColumn; int endColumn;
int offset = offsets[0]; int offset = offsets[0];
int startColumn = batchInfos[0].startColumn; int startColumn = batchInfos[0].startColumn;