Update Keywords list to include most tokens (#244)

- Fixes https://github.com/Microsoft/vscode-mssql/issues/705
- Updated the keyword list to include most common keyword ranges and added test to cover top 10 missing keywords
- Fixed a bug in TestUtilities.cs where text range was not defined correctly.
This commit is contained in:
Kevin Cunnane
2017-02-21 18:21:59 -08:00
committed by GitHub
parent ef012a4f98
commit ccd2c9caa9
7 changed files with 208 additions and 29 deletions

View File

@@ -54,9 +54,10 @@ namespace Microsoft.SqlTools.ServiceLayer.Test.Common
int startRange = Math.Max(firstDiffIndex - 50, 0);
int endRange = Math.Min(firstDiffIndex + 50, minEnd);
int length = endRange - startRange;
string baselineDiff = ShowWhitespace(baseline.Substring(startRange, endRange));
string actualDiff = ShowWhitespace(actual.Substring(startRange, endRange));
string baselineDiff = ShowWhitespace(baseline.Substring(startRange, length));
string actualDiff = ShowWhitespace(actual.Substring(startRange, length));
return "\r\nFirst Diff:\r\n===== Baseline =====\r\n"
+ baselineDiff
+ "\r\n===== Actual =====\r\n"