Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function translateCompletionItemKind(kind: vscode.CompletionItemKind): LitTargetKind {
switch (kind) {
case vscode.CompletionItemKind.Method:
return "memberFunctionElement";
case vscode.CompletionItemKind.Function:
return "functionElement";
case vscode.CompletionItemKind.Constructor:
return "constructorImplementationElement";
case vscode.CompletionItemKind.Field:
case vscode.CompletionItemKind.Variable:
return "variableElement";
case vscode.CompletionItemKind.Class:
return "classElement";
case vscode.CompletionItemKind.Interface:
return "interfaceElement";
case vscode.CompletionItemKind.Module:
return "moduleElement";
case vscode.CompletionItemKind.Property:
return "memberVariableElement";
case vscode.CompletionItemKind.Unit:
case vscode.CompletionItemKind.Value:
return "constElement";
case vscode.CompletionItemKind.Enum:
return "enumElement";
case vscode.CompletionItemKind.Keyword:
return "keyword";
case vscode.CompletionItemKind.Color:
return "constElement";