Skip to content

Ensure correct script kind and text when using cached sourceFile from scriptInfo#57641

Merged
sheetalkamat merged 2 commits into
mainfrom
scriptKindWithPlugin
Mar 4, 2024
Merged

Ensure correct script kind and text when using cached sourceFile from scriptInfo#57641
sheetalkamat merged 2 commits into
mainfrom
scriptKindWithPlugin

Conversation

@sheetalkamat
Copy link
Copy Markdown
Member

When using cached sourceFile from the info, make sure the scriptKind is same

This is needed esp with externalFiles since they may not use actual scriptInfo and text at all
Fixes #57631

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Mar 4, 2024
@sheetalkamat sheetalkamat force-pushed the scriptKindWithPlugin branch from faad4b8 to aada58d Compare March 4, 2024 22:19
…is same

This is needed esp with externalFiles since they may not use actual scriptInfo and text at all
Fixes #57631
@sheetalkamat sheetalkamat force-pushed the scriptKindWithPlugin branch from aada58d to a59f129 Compare March 4, 2024 22:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Vue TS Plugin] False expression: Script kind should match provided is thrown when different script kinds are given for the same file name.

3 participants