Update parser & autocomplete list (#1729)

This commit is contained in:
Charles Gagnon
2022-10-24 16:29:38 -07:00
committed by GitHub
parent 999e0fb2e2
commit 3be806ddce
2 changed files with 32 additions and 4 deletions

View File

@@ -20,8 +20,8 @@ using Range = Microsoft.SqlTools.ServiceLayer.Workspace.Contracts.Range;
namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
{
/// <summary>
/// Main class for Language Service functionality including anything that reqires knowledge of
/// the language to perfom, such as definitions, intellisense, etc.
/// Main class for Language Service functionality including anything that requires knowledge of
/// the language to perform, such as definitions, intellisense, etc.
/// </summary>
public static class AutoCompleteHelper
{
@@ -30,6 +30,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
public static readonly string[] DefaultCompletionText = new string[]
{
"abs",
"abort",
"acos",
"action",
"add",
@@ -39,7 +40,10 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"any",
"apply",
"approx_count_distinct",
"approx_percentile_cont",
"approx_percentile_disc",
"are",
"array",
"as",
"asc",
"ascii",
@@ -48,12 +52,16 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"atan",
"atn2",
"authorization",
"auto",
"auto_drop",
"avg",
"backup",
"begin",
"between",
"binary",
"bit",
"bit_count",
"blockers",
"both",
"break",
"bulk",
@@ -107,6 +115,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"database",
"datalength",
"date",
"date_bucket",
"dateadd",
"datediff",
"datefromparts",
@@ -114,7 +123,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"datepart",
"datetime",
"datetime2",
"date_bucket",
"datetrunc",
"day",
"days",
"dbcc",
@@ -161,6 +170,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"fillfactor",
"filter",
"first",
"first_value",
"float",
"floor",
"for",
@@ -170,8 +180,10 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"from",
"full",
"function",
"generate_series",
"geography",
"get",
"get_bit",
"getdate",
"getutcdate",
"global",
@@ -193,6 +205,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"identity_insert",
"identitycol",
"if",
"ignore",
"iif",
"image",
"immediate",
@@ -219,7 +232,9 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"key",
"language",
"last",
"leading",
"left",
"left_shift",
"len",
"level",
"like",
@@ -236,11 +251,13 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"masked",
"match",
"max",
"max_duration",
"maxdop",
"merge",
"message",
"min",
"minute",
"minutes",
"modify",
"module",
"month",
@@ -261,6 +278,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"now",
"null",
"nullif",
"nulls",
"numeric",
"nvarchar",
"object",
@@ -287,6 +305,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"password",
"path",
"patindex",
"pause",
"percent",
"percentage",
"period",
@@ -305,6 +324,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"proc",
"procedure",
"public",
"quarter",
"query_store",
"quoted_identifier",
"quotename",
@@ -334,6 +354,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"replicate",
"replication",
"required",
"respect",
"restart",
"restore",
"restrict",
@@ -344,6 +365,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"revert",
"revoke",
"right",
"right_shift",
"rollback",
"rollup",
"round",
@@ -355,6 +377,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"rule",
"sample",
"save",
"scalar",
"schema",
"schemabinding",
"scoped",
@@ -363,6 +386,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"secondary",
"security",
"select",
"self",
"send",
"sent",
"sequence",
@@ -371,6 +395,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"session_user",
"sessionproperty",
"set",
"set_bit",
"sets",
"setuser",
"shutdown",
@@ -421,6 +446,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"tinyint",
"to",
"top",
"trailing",
"tran",
"transaction",
"translate",
@@ -455,6 +481,8 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"version",
"view",
"waitfor",
"wait_at_low_priority",
"week",
"when",
"where",
"while",