Skip to content

Commit 5a50e1b

Browse files
authored
Port "Fix Symbol completion priority and cursor positioning" (#1835)
1 parent 1f3304f commit 5a50e1b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/ls/completions.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,7 @@ func (l *LanguageService) getCompletionData(
767767
}
768768
if firstAccessibleSymbolId != 0 && seenPropertySymbols.AddIfAbsent(firstAccessibleSymbolId) {
769769
symbols = append(symbols, firstAccessibleSymbol)
770+
symbolToSortTextMap[firstAccessibleSymbolId] = SortTextGlobalsOrKeywords
770771
moduleSymbol := firstAccessibleSymbol.Parent
771772
if moduleSymbol == nil ||
772773
!checker.IsExternalModuleSymbol(moduleSymbol) ||

0 commit comments

Comments
 (0)