Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maybe Type in useState breaks Syntax Highlighting #391

Open
hugolam opened this issue Jun 22, 2020 · 3 comments
Open

Maybe Type in useState breaks Syntax Highlighting #391

hugolam opened this issue Jun 22, 2020 · 3 comments

Comments

@hugolam
Copy link

hugolam commented Jun 22, 2020

With the "?" in the type, it breaks:
image
(But it passes flow validation)

Without the "?", the highlight is ok:
image

@orta
Copy link
Contributor

orta commented Aug 1, 2020

This extension doesn't ship it's own language syntax, it comes from the JS/TS syntax which ships with VS Code. We weren't keeping it up to date, and figured it was better to have one which was up to date but occasionally wrong.

@noppa
Copy link

noppa commented Aug 2, 2020

@hugolam Try using "Babel JavaScript" extension for syntax hilighting, as mentioned in the Known issues section of the readme.

@hugolam
Copy link
Author

hugolam commented Feb 11, 2021

Thanks @orta! it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants