Skip to content

Not working with Vue files #117

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

Closed
alexbudure opened this issue Feb 12, 2018 · 5 comments
Closed

Not working with Vue files #117

alexbudure opened this issue Feb 12, 2018 · 5 comments

Comments

@alexbudure
Copy link

I have Vetur installed, yet it still doesn't seem to work. Any ideas?

@zignd
Copy link
Owner

zignd commented Feb 12, 2018

I just tried it out and worked with a .vue file. This simple div declaration triggered auto completion for me:

<div class="something">
</div>

Are you using the extension from inside a workspace? Do you have your CSS classes defined in .css files, referenced through a link element in HTML files or inside style elements? If you answered yes for most of those questions would be great if you could check your Developer Tools (Help > Toggle Developer Tools) as the extension logs some useful info to it.

@alexbudure
Copy link
Author

Sorry, I should've been more clear. It recognizes styles in global css files, however it does not recognize the styles within the <style> tag in a Vue single file component.

@zignd
Copy link
Owner

zignd commented Feb 12, 2018

No problem. Actually, the extension doesn't support CSS classes defined inside .vue files, it only supports auto-completion for the class attribute in this file format. You would have to define them on the outside.

@alexbudure
Copy link
Author

Ohhh, is this something you're willing to consider? Coming from WebStorm, that was a pretty helpful feature.

@zignd
Copy link
Owner

zignd commented Feb 12, 2018

Actually, that's something I never thought about, I didn't know Vue allowed you to do so (as I mostly use React in real life). But I will open another issue requesting this feature, so I can keep track of it.

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

2 participants