mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-23 09:35:38 -05:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user