feat(14751): show static members at the top of the list for a class like completion (#40428)

This commit is contained in:
Alex T
2020-09-11 14:48:24 -07:00
committed by GitHub
parent 3d235b42a0
commit d7cd405bb2
24 changed files with 214 additions and 82 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ namespace ts.Completions.StringCompletions {
name: type.value,
kindModifiers: ScriptElementKindModifier.none,
kind: ScriptElementKind.string,
sortText: "0",
sortText: SortText.LocationPriority,
replacementSpan: getReplacementSpanForContextToken(contextToken)
}));
return { isGlobalCompletion: false, isMemberCompletion: false, isNewIdentifierLocation: completion.isNewIdentifier, optionalReplacementSpan, entries };