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

Does not work with PostCSS files #131

Open
JonathanTroyer opened this issue May 7, 2018 · 2 comments
Open

Does not work with PostCSS files #131

JonathanTroyer opened this issue May 7, 2018 · 2 comments

Comments

@JonathanTroyer
Copy link

I added "html-css-class-completion.includeGlobPattern": "**/*.{css,html,pcss}" to my user settings, but the extension does not pick up classes defined in .pcss files, even if those files follow valid CSS syntax. This is true with or without PostCSS support in VSCode. I would think that the plugin should be able to pick out classes regardless of the file ending, but it seems this is not the case.

@onetrev
Copy link

onetrev commented May 17, 2018

Agree. This is an issue for sure. And the same issue occurs if you are just using PostCSS in regular .css files. Additionally, it seems like once the extensions hits any kind of unexpected CSS, like cssnext powered nesting, then it just stops indexing all your classes so you end up with close to no results at all, even if you have just a few non-standard css items.

I'm not sure what this extension does differently, but it works for my cssnext code: https://marketplace.visualstudio.com/items?itemName=ecmel.vscode-html-css

@Frando
Copy link

Frando commented Jul 24, 2018

Created a PR to fix this: #140

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

No branches or pull requests

4 participants