Adding more tsql keywords and functions for completion (#851)

This commit is contained in:
Shengyu Fu
2019-08-19 09:00:24 -07:00
committed by GitHub
parent 2b617dc114
commit b01bdeba32

View File

@@ -32,11 +32,15 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
{ {
"abs", "abs",
"acos", "acos",
"action",
"add",
"all", "all",
"alter", "alter",
"and", "and",
"any",
"apply", "apply",
"approx_count_distinct", "approx_count_distinct",
"are",
"as", "as",
"asc", "asc",
"ascii", "ascii",
@@ -44,12 +48,14 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"at", "at",
"atan", "atan",
"atn2", "atn2",
"authorization",
"avg", "avg",
"backup", "backup",
"begin", "begin",
"between", "between",
"binary", "binary",
"bit", "bit",
"both",
"break", "break",
"bulk", "bulk",
"by", "by",
@@ -57,6 +63,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"cascade", "cascade",
"case", "case",
"cast", "cast",
"catalog",
"catch", "catch",
"ceiling", "ceiling",
"char", "char",
@@ -68,13 +75,19 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"close", "close",
"clustered", "clustered",
"coalesce", "coalesce",
"collate",
"collation",
"column", "column",
"columnstore", "columnstore",
"commit", "commit",
"compute",
"concat", "concat",
"concat_ws", "concat_ws",
"connect", "connect",
"constraint", "constraint",
"constraints",
"contains",
"containstable",
"continue", "continue",
"convert", "convert",
"cos", "cos",
@@ -83,6 +96,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"count_big", "count_big",
"create", "create",
"cross", "cross",
"current",
"current_date", "current_date",
"current_timestamp", "current_timestamp",
"current_user", "current_user",
@@ -104,6 +118,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"day", "day",
"days", "days",
"dbcc", "dbcc",
"deallocate",
"dec", "dec",
"decimal", "decimal",
"declare", "declare",
@@ -117,6 +132,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"disabled", "disabled",
"disk", "disk",
"distinct", "distinct",
"distributed",
"double", "double",
"drop", "drop",
"drop_existing", "drop_existing",
@@ -127,6 +143,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"encrypted", "encrypted",
"end", "end",
"end-exec", "end-exec",
"escape",
"except", "except",
"exec", "exec",
"execute", "execute",
@@ -134,12 +151,14 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"exit", "exit",
"exp", "exp",
"external", "external",
"false",
"fast_forward", "fast_forward",
"fetch", "fetch",
"file", "file",
"filegroup", "filegroup",
"filename", "filename",
"filestream", "filestream",
"fillfactor",
"filter", "filter",
"first", "first",
"float", "float",
@@ -147,6 +166,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"for", "for",
"foreign", "foreign",
"format", "format",
"freetexttable",
"from", "from",
"full", "full",
"function", "function",
@@ -167,22 +187,29 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"hidden", "hidden",
"hierarchyid", "hierarchyid",
"holdlock", "holdlock",
"hour",
"hours", "hours",
"identity", "identity",
"identity_insert",
"identitycol", "identitycol",
"if", "if",
"iif", "iif",
"image", "image",
"immediate", "immediate",
"in",
"include", "include",
"index", "index",
"inner", "inner",
"input",
"insensitive",
"insert", "insert",
"instead", "instead",
"int", "int",
"integer", "integer",
"intersect", "intersect",
"interval",
"into", "into",
"is",
"isdate", "isdate",
"isnull", "isnull",
"isnumeric", "isnumeric",
@@ -195,6 +222,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"left", "left",
"len", "len",
"level", "level",
"like",
"lineno", "lineno",
"load", "load",
"local", "local",
@@ -206,15 +234,20 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"lower", "lower",
"ltrim", "ltrim",
"masked", "masked",
"match",
"max", "max",
"maxdop", "maxdop",
"merge", "merge",
"message", "message",
"min", "min",
"minute",
"modify", "modify",
"module",
"month", "month",
"move", "move",
"names",
"namespace", "namespace",
"national",
"native_compilation", "native_compilation",
"nchar", "nchar",
"next", "next",
@@ -236,7 +269,9 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"offsets", "offsets",
"on", "on",
"online", "online",
"only",
"open", "open",
"openquery",
"openrowset", "openrowset",
"openxml", "openxml",
"option", "option",
@@ -257,8 +292,10 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"period", "period",
"persisted", "persisted",
"pi", "pi",
"pivot",
"plan", "plan",
"policy", "policy",
"position",
"power", "power",
"precision", "precision",
"predicate", "predicate",
@@ -295,6 +332,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"reorganize", "reorganize",
"replace", "replace",
"replicate", "replicate",
"replication",
"required", "required",
"restart", "restart",
"restore", "restore",
@@ -321,6 +359,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"schemabinding", "schemabinding",
"scoped", "scoped",
"scroll", "scroll",
"second",
"secondary", "secondary",
"security", "security",
"select", "select",
@@ -334,12 +373,15 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"set", "set",
"sets", "sets",
"setuser", "setuser",
"shutdown",
"sign", "sign",
"simple", "simple",
"sin", "sin",
"size",
"smallint", "smallint",
"smallmoney", "smallmoney",
"snapshot", "snapshot",
"some",
"soundex", "soundex",
"space", "space",
"sql", "sql",
@@ -371,6 +413,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"take", "take",
"tan", "tan",
"target", "target",
"temporary",
"then", "then",
"throw", "throw",
"time", "time",
@@ -383,8 +426,10 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"translate", "translate",
"trigger", "trigger",
"trim", "trim",
"true",
"truncate", "truncate",
"try", "try",
"try_convert",
"tsql", "tsql",
"type", "type",
"uncommitted", "uncommitted",
@@ -392,6 +437,8 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"union", "union",
"unique", "unique",
"uniqueidentifier", "uniqueidentifier",
"unknown",
"unpivot",
"update", "update",
"updatetext", "updatetext",
"upper", "upper",
@@ -404,6 +451,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"var", "var",
"varchar", "varchar",
"varp", "varp",
"varying",
"version", "version",
"view", "view",
"waitfor", "waitfor",
@@ -413,10 +461,13 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"with", "with",
"within", "within",
"without", "without",
"work",
"write",
"writetext", "writetext",
"xact_abort", "xact_abort",
"xml", "xml",
"year", "year",
"zone",
}; };
/// <summary> /// <summary>