Skip to content

Conversation

@flenter
Copy link
Member

@flenter flenter commented Jun 26, 2023

This is done by tweaking the logic slightly (typescript 5 returns a slightly different AST tree) and also use the typescript util functions that are passed into the plugin. This is important because the vscode extension currently bundles a typescript version which might be different from the one that the project is using. And given that typescript relies on enums with numbers, we can run into issues where the value 357 for SyntaxKind might mean one thing in one version and something completely different in another typescript version.

flenter added 4 commits June 26, 2023 12:41
This is done by tweaking the logic slightly (typescript 5 returns a slightly different AST tree) and also use the typescript util functions that are passed into the plugin. This is important because the vscode extension currently bundles a typescript version which might be different from the one that the project is using. And given that typescript relies on enums with numbers, we can run into issues where the value 357 for SyntaxKind might mean one thing in one version and something completely different in another typescript version.
@flenter flenter requested review from laulauland and oscarvz June 26, 2023 10:51
Copy link
Member

@oscarvz oscarvz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@flenter flenter merged commit 40a4001 into main Jun 27, 2023
@flenter flenter deleted the fix_typescript branch June 27, 2023 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants