sass-textmate-bundle icon indicating copy to clipboard operation
sass-textmate-bundle copied to clipboard

.scss "level" differences for auto-completion

Open sp00n opened this issue 11 years ago • 4 comments
trafficstars

Something weird is going on when writing code in different "levels".

For example, in a "level 1" notation like below, no colon is entered when auto-completing a property, and some properties don't show up in the auto-complete list (like font-style). If I however add a second level element inside that one, all of the above suddenly works. Except adding a semicolon at the end.

Example:

.level-1 {
    width: 100%; // No automatic colon when auto-completing for "width"
    font-style: normal; // "font-style" doesn't show up in the auto-complete list

    .level-2 {
        width: 100%; // Colon is automatically added when auto-completing "width"
        font-style: normal; // Auto-completion for "font-style" works
    }
}

Also see here: https://github.com/nathos/sass-textmate-bundle/issues/37

sp00n avatar Jul 03 '14 11:07 sp00n

yes i have the same problem and for me its the most important problem to solve!I have the same problem. pls fix it.

mariogarridopt avatar Jul 21 '14 13:07 mariogarridopt

I cannot reproduce this.

  1. Opened new file + saved as test.scss
  2. typed this:
.level-1 {
    w
    // Autocomplete pops up and suggests `width`

Same thing applies for font-style.

kleinfreund avatar Jul 21 '14 13:07 kleinfreund

try color:

mariogarridopt avatar Jul 22 '14 21:07 mariogarridopt

.level-1 {
    c
    // Autocomplete pops up and suggests `color` as 5th

It doesn't suggest namespaced color names though, but I guess that's fine.

kleinfreund avatar Jul 23 '14 04:07 kleinfreund