api - encourage to set kind when creating a completion item

This commit is contained in:
Johannes Rieken
2016-06-03 15:44:47 +02:00
parent 9afa1307d4
commit 640f516f37
2 changed files with 3 additions and 8 deletions

View File

@@ -717,8 +717,9 @@ export class CompletionItem {
insertText: string;
textEdit: TextEdit;
constructor(label: string) {
constructor(label: string, kind?: CompletionItemKind) {
this.label = label;
this.kind = kind;
}
toJSON(): any {