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

[Bug]: No Syntax highlighting when conforming to CRA styled-jsx style #1

Open
jkohlin opened this issue Sep 27, 2022 · 1 comment · May be fixed by #2
Open

[Bug]: No Syntax highlighting when conforming to CRA styled-jsx style #1

jkohlin opened this issue Sep 27, 2022 · 1 comment · May be fixed by #2
Assignees
Labels
enhancement New feature or request

Comments

@jkohlin
Copy link

jkohlin commented Sep 27, 2022

To reproduce:
Install:

npx create-react-app bug-demo
npm install --save-dev styled-jsx
npm install --save-dev sass @styled-jsx/plugin-sass

Add some styled-jsx (CRA-style):

<style jsx="true">
// whatever style...
</style>

Current behavior:
image
As you can see there is no syntax highlighting

Babel or Create React App (IDK) requires me to add jsx="true" otherwise it will through an error
image

Expected behavior:
image

I want what the plugin is supposed to do 😊
Syntax highlighting
Environment information:

  • VSCode version: 1.71.2
  • vscode-styled-jsx version: 2.1.1
  • styled-jsx version: 5.0.7
@jkohlin jkohlin added the bug Something isn't working label Sep 27, 2022
@iChenLei iChenLei added enhancement New feature or request and removed bug Something isn't working labels Sep 27, 2022
@iChenLei
Copy link
Owner

Thanks for issue report.

@iChenLei iChenLei linked a pull request Sep 29, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants