mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
Use enum member completion type
This commit is contained in:
@@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user