Skip to content

Commit

Permalink
fix: type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Golovin committed Feb 18, 2024
1 parent ceffe31 commit 013906c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion typescript/src/completionsAtPosition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,11 @@ export const getCompletionsAtPosition = (
prior.entries = []
}
if (c('cleanupVueComponentCompletions') === 'filter-non-vue') {
prior.entries = prior.entries.filter(entry => isVueFileName(entry.symbol?.declarations?.[0]?.getSourceFile().fileName))
prior.entries = prior.entries.filter(entry => {
const fileName = entry.symbol?.declarations?.[0]?.getSourceFile().fileName
if (!fileName) return false
return isVueFileName(fileName)
})
}
}
}
Expand Down

0 comments on commit 013906c

Please sign in to comment.