mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-22 02:35:48 -05:00
set the kind on alias completions
This commit is contained in:
@@ -1025,6 +1025,8 @@ module ts {
|
||||
static primitiveType = "primitive type";
|
||||
|
||||
static label = "label";
|
||||
|
||||
static alias = "alias"
|
||||
}
|
||||
|
||||
export class ScriptElementKindModifier {
|
||||
@@ -2293,6 +2295,7 @@ module ts {
|
||||
if (flags & SymbolFlags.Constructor) return ScriptElementKind.constructorImplementationElement;
|
||||
if (flags & SymbolFlags.TypeParameter) return ScriptElementKind.typeParameterElement;
|
||||
if (flags & SymbolFlags.EnumMember) return ScriptElementKind.variableElement;
|
||||
if (flags & SymbolFlags.Import) return ScriptElementKind.alias;
|
||||
|
||||
return ScriptElementKind.unknown;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
////}
|
||||
|
||||
goTo.marker("1");
|
||||
verify.memberListContains("x");
|
||||
verify.memberListContains("x", undefined, undefined, undefined ,/*kind: */ "alias");
|
||||
|
||||
goTo.marker("2");
|
||||
verify.memberListContains("value");
|
||||
|
||||
Reference in New Issue
Block a user