subhaze/CSS-Extended

autocomplete in .css file does not work

tbitowt opened this issue · 7 comments

Hi,

I have html file with a simple:

And when I type .c in css file and click ctrl + space, I cannot see container class.

I am using Sublime Text 3 on Windows

There are no errors in console

Thanks for the details!

Have you set a folder to be indexed or saved the css/less/scss file that you want completions from?

By default you wont get any completions until you've either save a css/less/scss file or right click a folder in the sidebar and request it to be cached for completions.

I have set "Add All File Types to Cache" on main directory (I have done that also on css and html files to be sure). I have also saved both : css and html file.

BTW. In HTML file completion works, but in css file it doesn't

Thanks for the feedback.

"I have set "Add All File Types to Cache" on main directory. I have also saved both : css and html file."

The saving should work (I'll check into that), however, as it stands the caching on the sidebar does not do any recursion so it will only look for files at the first level. This is something I plan to change on the next update though.

But how is it possible that completion in html file working, but in css not?

That's what I'm going to have to look into. Right now all is working for me fine on ST3/OS X.

CSS/LESS/HTML files all provide completions for me.

I have found that in logs i can see only css file parsed:

PARSING FILE C:\test\test.css

There is no info about html file parsed

The html is only parsed on save (I should probably add that to the sidebar).

So when you save you should see something like PARSING SAVED VIEW