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 CompletionProvider = new CompletionOptions
{ {
ResolveProvider = true, ResolveProvider = true,
TriggerCharacters = new string[] { ".", "-", ":", "\\", "," } TriggerCharacters = new string[] { ".", "-", ":", "\\" }
}, },
SignatureHelpProvider = new SignatureHelpOptions SignatureHelpProvider = new SignatureHelpOptions
{ {

View File

@@ -30,7 +30,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
private static WorkspaceService<SqlToolsSettings> workspaceServiceInstance; 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]; private static CompletionItem[] emptyCompletionList = new CompletionItem[0];
@@ -103,6 +103,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"end-exec", "end-exec",
"exec", "exec",
"execute", "execute",
"exists",
"exit", "exit",
"external", "external",
"fast_forward", "fast_forward",
@@ -177,6 +178,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"nonclustered", "nonclustered",
"none", "none",
"norecompute", "norecompute",
"not",
"now", "now",
"null", "null",
"numeric", "numeric",
@@ -193,6 +195,7 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
"or", "or",
"order", "order",
"out", "out",
"outer",
"output", "output",
"over", "over",
"owner", "owner",