Skip to content

Commit 013906c

Browse files
author
Ilya Golovin
committed
fix: type issue
1 parent ceffe31 commit 013906c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: typescript/src/completionsAtPosition.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,11 @@ export const getCompletionsAtPosition = (
288288
prior.entries = []
289289
}
290290
if (c('cleanupVueComponentCompletions') === 'filter-non-vue') {
291-
prior.entries = prior.entries.filter(entry => isVueFileName(entry.symbol?.declarations?.[0]?.getSourceFile().fileName))
291+
prior.entries = prior.entries.filter(entry => {
292+
const fileName = entry.symbol?.declarations?.[0]?.getSourceFile().fileName
293+
if (!fileName) return false
294+
return isVueFileName(fileName)
295+
})
292296
}
293297
}
294298
}

0 commit comments

Comments
 (0)