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