support SymbolKind.Constructor and localFunction as snippet

This commit is contained in:
Qiming Zhao 2022-04-08 22:40:10 +08:00
parent 07ee36caf6
commit fb9bde0c08
No known key found for this signature in database
GPG key ID: 9722CD0E8D4DCB8C
2 changed files with 2 additions and 0 deletions

View file

@ -38,6 +38,7 @@ const getSymbolKind = (kind: string): SymbolKind => {
return SymbolKind.Variable return SymbolKind.Variable
case PConst.Kind.constructSignature: case PConst.Kind.constructSignature:
case PConst.Kind.constructorImplementation: case PConst.Kind.constructorImplementation:
return SymbolKind.Constructor
case PConst.Kind.function: case PConst.Kind.function:
case PConst.Kind.localFunction: case PConst.Kind.localFunction:
return SymbolKind.Function return SymbolKind.Function

View file

@ -139,6 +139,7 @@ function convertKind(kind: string): CompletionItemKind {
case PConst.Kind.memberSetAccessor: case PConst.Kind.memberSetAccessor:
return CompletionItemKind.Field return CompletionItemKind.Field
case PConst.Kind.function: case PConst.Kind.function:
case PConst.Kind.localFunction:
return CompletionItemKind.Function return CompletionItemKind.Function
case PConst.Kind.method: case PConst.Kind.method:
case PConst.Kind.constructSignature: case PConst.Kind.constructSignature: