mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
api - encourage to set kind when creating a completion item
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user