Open JustJarethB opened 1 year ago
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.81.1. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!
Upgraded to 1.81.1; Issue persists
Does this issue occur when all extensions are disabled?: Yes
Related to https://github.com/microsoft/TypeScript/issues/47062 TSC has been updated to successfully parse the below TSX code snippet:
however this currently breaks the syntax highlighting in VSCode's
typescriptreact
parser.The same can be said for the trailing comma added by prettier (3.0.3):
Some short term work-arounds are available:
Using
extends
Using
function
syntaxDespite these workarounds, the original code seems syntactically valid, and more concise, so I believe this to be a bug