Skip to content

Commit

Permalink
fix: skip type only
Browse files Browse the repository at this point in the history
  • Loading branch information
KazariEX committed Dec 18, 2024
1 parent 6f41dec commit 4b24a81
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/language-core/lib/parsers/scriptSetupRanges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ export function parseScriptSetupRanges(
}
if (namedBindings && ts.isNamedImports(namedBindings)) {
for (const element of namedBindings.elements) {
if (element.propertyName?.text === 'default') {
if (
!element.isTypeOnly
&& element.propertyName?.text === 'default'
) {
importComponentNames.add(_getNodeText(element.name));
}
}
Expand Down

0 comments on commit 4b24a81

Please sign in to comment.