Use enum member completion type
This commit is contained in:
parent
352d641042
commit
4116c9411b
|
@ -169,6 +169,8 @@ class MyCompletionItem extends vscode.CompletionItem {
|
|||
return vscode.CompletionItemKind.Method;
|
||||
case PConst.Kind.enum:
|
||||
return vscode.CompletionItemKind.Enum;
|
||||
case PConst.Kind.enumMember:
|
||||
return vscode.CompletionItemKind.EnumMember;
|
||||
case PConst.Kind.module:
|
||||
case PConst.Kind.externalModuleName:
|
||||
return vscode.CompletionItemKind.Module;
|
||||
|
|
|
@ -12,6 +12,7 @@ export class Kind {
|
|||
public static readonly constructSignature = 'construct';
|
||||
public static readonly directory = 'directory';
|
||||
public static readonly enum = 'enum';
|
||||
public static readonly enumMember = 'enum member';
|
||||
public static readonly externalModuleName = 'external module name';
|
||||
public static readonly function = 'function';
|
||||
public static readonly indexSignature = 'index';
|
||||
|
@ -69,4 +70,4 @@ export class DisplayPartKind {
|
|||
public static readonly propertyName = 'propertyName';
|
||||
public static readonly punctuation = 'punctuation';
|
||||
public static readonly text = 'text';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue