Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants