changed the icons for the completion list based on the sql type (#112)

* changed the icons for the completion list based on the sql type
This commit is contained in:
Leila Lali
2016-10-21 15:50:12 -07:00
committed by GitHub
parent 854a6a0eca
commit 5a7b412c38

View File

@@ -576,21 +576,22 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
kind = CompletionItemKind.Field; kind = CompletionItemKind.Field;
break; break;
case DeclarationType.Table: case DeclarationType.Table:
kind = CompletionItemKind.Method; case DeclarationType.View:
break;
case DeclarationType.Database:
kind = CompletionItemKind.File; kind = CompletionItemKind.File;
break; break;
case DeclarationType.Server: case DeclarationType.Database:
kind = CompletionItemKind.Method;
break;
case DeclarationType.ScalarValuedFunction:
case DeclarationType.TableValuedFunction:
case DeclarationType.BuiltInFunction:
kind = CompletionItemKind.Value; kind = CompletionItemKind.Value;
break; break;
default: default:
kind = CompletionItemKind.Variable; kind = CompletionItemKind.Unit;
break; break;
} }
// convert the completion item candidates into CompletionItems // convert the completion item candidates into CompletionItems
completions.Add(CreateCompletionItem(autoCompleteItem.Title, autoCompleteItem.Title, insertText, kind, row, startColumn, endColumn)); completions.Add(CreateCompletionItem(autoCompleteItem.Title, autoCompleteItem.Title, insertText, kind, row, startColumn, endColumn));
} }