Skip to content

Commit

Permalink
fix potential no-setting perf regression
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy committed Feb 4, 2024
1 parent 1c0edd3 commit 539e3a0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions typescript/src/completions/filesAutoImport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ export default () => {
for (const [ext, item] of Object.entries(filesAutoImport)) {
if (currentText.startsWith(item.prefix)) included.push({ ext, item })
}
// if (!included.length) return
if (included.length === 0) return
const root = languageServiceHost.getCurrentDirectory()
// const fileRelative = nodeModules.path.relative(root, sourceFile.fileName)
const collected = [] as string[]
const MAX_ITERATIONS = 200
let iter = 0
Expand Down

0 comments on commit 539e3a0

Please sign in to comment.