Suggestion list cleanups (#115)

* Add additional autocomplete words

* Add another word to default completion list

* Add colorization keywords and fix minor bugs.
This commit is contained in:
Karl Burtram
2016-10-25 17:21:37 +00:00
parent 1d7e6e353f
commit ea77bfa885
2 changed files with 5 additions and 2 deletions

View File

@@ -157,7 +157,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Hosting
CompletionProvider = new CompletionOptions
{
ResolveProvider = true,
TriggerCharacters = new string[] { ".", "-", ":", "\\", "," }
TriggerCharacters = new string[] { ".", "-", ":", "\\" }
},
SignatureHelpProvider = new SignatureHelpOptions
{

View File

@@ -30,7 +30,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
private static WorkspaceService<SqlToolsSettings> workspaceServiceInstance;
private static Regex ValidSqlNameRegex = new Regex(@"^[\p{L}_][\p{L}\p{N}@$#_]{0,127}$");
private static Regex ValidSqlNameRegex = new Regex(@"^[\p{L}_@][\p{L}\p{N}@$#_]{0,127}$");
private static CompletionItem[] emptyCompletionList = new CompletionItem[0];
@@ -103,6 +103,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"end-exec",
"exec",
"execute",
"exists",
"exit",
"external",
"fast_forward",
@@ -177,6 +178,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"nonclustered",
"none",
"norecompute",
"not",
"now",
"null",
"numeric",
@@ -193,6 +195,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"or",
"order",
"out",
"outer",
"output",
"over",
"owner",