support SymbolKind.Constructor and localFunction as snippet
This commit is contained in:
parent
07ee36caf6
commit
fb9bde0c08
2 changed files with 2 additions and 0 deletions
|
@ -38,6 +38,7 @@ const getSymbolKind = (kind: string): SymbolKind => {
|
|||
return SymbolKind.Variable
|
||||
case PConst.Kind.constructSignature:
|
||||
case PConst.Kind.constructorImplementation:
|
||||
return SymbolKind.Constructor
|
||||
case PConst.Kind.function:
|
||||
case PConst.Kind.localFunction:
|
||||
return SymbolKind.Function
|
||||
|
|
|
@ -139,6 +139,7 @@ function convertKind(kind: string): CompletionItemKind {
|
|||
case PConst.Kind.memberSetAccessor:
|
||||
return CompletionItemKind.Field
|
||||
case PConst.Kind.function:
|
||||
case PConst.Kind.localFunction:
|
||||
return CompletionItemKind.Function
|
||||
case PConst.Kind.method:
|
||||
case PConst.Kind.constructSignature:
|
||||
|
|
Loading…
Reference in a new issue