Skip to content

Commit 1ed1122

Browse files
Copilotjakebailey
andcommitted
Format code using dprint formatter
Co-authored-by: jakebailey <[email protected]>
1 parent 20a1ffb commit 1ed1122

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/services/completions.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1735,7 +1735,8 @@ function createCompletionEntry(
17351735
// For symbol completions, position cursor inside brackets for better UX
17361736
insertText = needsConvertPropertyAccess ? `[${quotePropertyName(sourceFile, preferences, name)}$0]` : `[${name}$0]`;
17371737
isSnippet = true;
1738-
} else {
1738+
}
1739+
else {
17391740
insertText = useBraces ? needsConvertPropertyAccess ? `[${quotePropertyName(sourceFile, preferences, name)}]` : `[${name}]` : name;
17401741
}
17411742
if (insertQuestionDot || propertyAccessToConvert.questionDotToken) {
@@ -3857,10 +3858,10 @@ function getCompletionData(
38573858
if (firstAccessibleSymbolId && addToSeen(seenPropertySymbols, firstAccessibleSymbolId)) {
38583859
const index = symbols.length;
38593860
symbols.push(firstAccessibleSymbol);
3860-
3861+
38613862
// Symbol completions should have lower priority since they represent computed property access
38623863
symbolToSortTextMap[getSymbolId(firstAccessibleSymbol)] = SortText.GlobalsOrKeywords;
3863-
3864+
38643865
const moduleSymbol = firstAccessibleSymbol.parent;
38653866
if (
38663867
!moduleSymbol ||

0 commit comments

Comments
 (0)