Skip to content

Commit 539e3a0

Browse files
committedFeb 4, 2024
fix potential no-setting perf regression
1 parent 1c0edd3 commit 539e3a0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎typescript/src/completions/filesAutoImport.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ export default () => {
1313
for (const [ext, item] of Object.entries(filesAutoImport)) {
1414
if (currentText.startsWith(item.prefix)) included.push({ ext, item })
1515
}
16-
// if (!included.length) return
16+
if (included.length === 0) return
1717
const root = languageServiceHost.getCurrentDirectory()
18-
// const fileRelative = nodeModules.path.relative(root, sourceFile.fileName)
1918
const collected = [] as string[]
2019
const MAX_ITERATIONS = 200
2120
let iter = 0

0 commit comments

Comments
 (0)
Please sign in to comment.