mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 10:58:30 -05:00
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:
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user