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

Styled components / Atom: no autocompletion, and, no highlighting on extended styles #524

Open
metamn opened this issue Jan 13, 2019 · 3 comments

Comments

@metamn
Copy link

metamn commented Jan 13, 2019

I can't autocomplete with styled components, at all:
screenshot from 2019-01-13 12-18-00

Syntax highlighting works unless the style is an extended style:
screenshot from 2019-01-13 12-19-44

Source code: https://github.com/metamn/mr-ui/blob/master/src/basics/TypographyClassic/TypographyClassic.js

I have the latest (2.85.0) language-babel with Styled Components Auto-Complete checked:
screenshot from 2019-01-13 12-22-56

Thank you, no rush :)

@tedjames
Copy link

tedjames commented Feb 6, 2019

Also having an issue with this. Can someone look further into this? Much appreciated!

@royipressburger
Copy link

regarding the syntax highlight, it looks like every prefix which is not styled well cause the css not be highlighted. for example:

import styled from 'styled-components`;

const style  = styled.div`
    // here all styles will be highlighted
`

//But if we change the import:
import style from 'styled-components';

const styled  = style.div`
    // no highlight in here
`

this is of course will be issue with createGlobalStyle

@BryantIT
Copy link

I also have this issue.

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

4 participants