TypeScript icon indicating copy to clipboard operation
TypeScript copied to clipboard

Enhance isJS check in getNewImportFixes function

Open johnsoncodehk opened this issue 4 months ago • 2 comments

Fixes https://github.com/vuejs/language-tools/issues/4582

In getNewImportFixes, prioritize checking scriptKind over file extension for isJs. This ensures consistent JsdocTypeImport behavior for file types added via LS plugins.

johnsoncodehk avatar Dec 04 '25 20:12 johnsoncodehk

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

typescript-bot avatar Dec 04 '25 20:12 typescript-bot

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

typescript-bot avatar Dec 04 '25 20:12 typescript-bot