case SK::Extension:
case SK::Union:
return CompletionItemKind::Class;
- // FIXME(ioeric): figure out whether reference is the right type for aliases.
case SK::TypeAlias:
+ // We use the same kind as the VSCode C++ extension.
+ // FIXME: pick a better option when we have one.
+ return CompletionItemKind::Interface;
case SK::Using:
return CompletionItemKind::Reference;
case SK::Function:
return EmptyArgs ? "()" : "($0)";
return *Snippet; // Not an arg snippet?
}
- if (Completion.Kind == CompletionItemKind::Reference ||
+ // 'CompletionItemKind::Interface' matches template type aliases.
+ if (Completion.Kind == CompletionItemKind::Interface ||
Completion.Kind == CompletionItemKind::Class) {
if (Snippet->front() != '<')
return *Snippet; // Not an arg snippet?