File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1735,7 +1735,8 @@ function createCompletionEntry(
1735
1735
// For symbol completions, position cursor inside brackets for better UX
1736
1736
insertText = needsConvertPropertyAccess ? `[${ quotePropertyName ( sourceFile , preferences , name ) } $0]` : `[${ name } $0]` ;
1737
1737
isSnippet = true ;
1738
- } else {
1738
+ }
1739
+ else {
1739
1740
insertText = useBraces ? needsConvertPropertyAccess ? `[${ quotePropertyName ( sourceFile , preferences , name ) } ]` : `[${ name } ]` : name ;
1740
1741
}
1741
1742
if ( insertQuestionDot || propertyAccessToConvert . questionDotToken ) {
@@ -3857,10 +3858,10 @@ function getCompletionData(
3857
3858
if ( firstAccessibleSymbolId && addToSeen ( seenPropertySymbols , firstAccessibleSymbolId ) ) {
3858
3859
const index = symbols . length ;
3859
3860
symbols . push ( firstAccessibleSymbol ) ;
3860
-
3861
+
3861
3862
// Symbol completions should have lower priority since they represent computed property access
3862
3863
symbolToSortTextMap [ getSymbolId ( firstAccessibleSymbol ) ] = SortText . GlobalsOrKeywords ;
3863
-
3864
+
3864
3865
const moduleSymbol = firstAccessibleSymbol . parent ;
3865
3866
if (
3866
3867
! moduleSymbol ||
You can’t perform that action at this time.
0 commit comments