atom-language-postcss icon indicating copy to clipboard operation
atom-language-postcss copied to clipboard

Code completion doesn't give any suggestions

Open lmartins opened this issue 8 years ago • 22 comments

Things like html tags and css property/values are auto-completed both in CSS and Sass, but not in posts files using this syntax mode. Is this something to be expected in the current implementation or some issue with my editor?

lmartins avatar Nov 14 '15 22:11 lmartins

Thanks @azat-io

lmartins avatar Nov 17 '15 20:11 lmartins

No problem. 😄

azat-io avatar Nov 17 '15 20:11 azat-io

Actually it does't seem to make much difference in my install. Doest it provide all the css completions for you?

lmartins avatar Nov 17 '15 20:11 lmartins

I don't get property and value autocomplete as well. Using v1.1.0.

steverandy avatar Nov 21 '15 03:11 steverandy

Same issue for me (v1.7.2)

c9rgreen avatar Apr 25 '16 00:04 c9rgreen

Wouldn't we need to add snippets like this: atom-language-css snippets

2metres avatar Jul 11 '16 10:07 2metres

I'm working on it :smiley:

azat-io avatar Jul 12 '16 09:07 azat-io

Is there a quick fix for this one?

geoffreydhuyvetters avatar Oct 20 '16 09:10 geoffreydhuyvetters

Is there any news on getting CSS code completion working?

chrisallenmoore avatar Nov 27 '16 10:11 chrisallenmoore

Same issue for me. Is there any fix so far? Version 1.3.0 Also checked the other topics - didnt work yet.

mikephilippstock avatar Dec 10 '16 03:12 mikephilippstock

This is the biggest issue with using language-postcss in atom. Such an important feature.

timothyis avatar Dec 15 '16 15:12 timothyis

Same issue. Atom 1.13.1, package version 1.3.0

tjkohli avatar Feb 05 '17 23:02 tjkohli

Any updates on this? 😞

timothyis avatar Feb 21 '17 00:02 timothyis

Same here, I'm craving this, and it's a must have for sure! Makes postCSS look like a chump right now in Atom xD

pixxx avatar Feb 22 '17 17:02 pixxx

This is also a duplicate of #30

tjkohli avatar Feb 22 '17 18:02 tjkohli

@tjkohli #30 is a duplicate of this issue.

timothyis avatar Feb 22 '17 18:02 timothyis

Same issue here (atom v 1.14.3, package v 1.3.0).

cantiero avatar Feb 26 '17 13:02 cantiero

One quick (but dirty) workaround is to go ~/.atom/packages/language-postcss and replace all occurrences of .postcss to .css.

The reason is probably because there is no mention of *.postscss selectors in autocomplete-css.

Njke avatar Mar 02 '17 02:03 Njke

Another extremely hacky solution would be installing local copy of autocomplete-css

apm install autocomplete-css

open this file

atom ~/.atom/packages/autocomplete-css/lib/provider.coffee

and patch hasScope function by adding extra condition, so function become

hasScope = (scopesArray, scope) ->
  scopesArray.indexOf(scope) isnt -1 or scopesArray.indexOf(scope.replace(/\.css$/, '.postcss')) isnt -1

dolbyzerr avatar Apr 13 '17 17:04 dolbyzerr

After Atom 1.20 release. Now can auto complete with autocomplete-css package. Related with https://github.com/atom/autocomplete-css/pull/80

I think it solved this issue 😄

jessy1092 avatar Sep 13 '17 04:09 jessy1092

I can confirm that it also works on Atom v1.21.

steverandy avatar Sep 13 '17 05:09 steverandy

Hey Atom 1.33.1 here and it does not work. Need PostCSS to have autocomplete.

rudolfschmidt avatar Dec 24 '18 00:12 rudolfschmidt