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

Sass variables in selector breaks emmet #31990

Closed
roblourens opened this issue Aug 3, 2017 · 2 comments
Closed

Sass variables in selector breaks emmet #31990

roblourens opened this issue Aug 3, 2017 · 2 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug emmet Emmet related issues verified Verification succeeded
Milestone

Comments

@roblourens
Copy link
Member

Have a .scss file using this pattern:

p.#{$name} {
}

Now emmet doesn't work in the file

@roblourens roblourens added the emmet Emmet related issues label Aug 3, 2017
@ramya-rao-a
Copy link
Contributor

Also control directives

/* if else statement */
$type: monster;
p {
  @if $type == ocean {
    color: blue;
  } @else {
    color: black;
  }
}
/* for statement */
@for $i from 1 through 3 {
  .item-#{$i} { width: 2em * $i;  }
}
/* while statement */
$i: 6;
@while $i > 0 {
  .item-#{$i} { width: 2em * $i; }
  $i: $i - 2;
}

@ramya-rao-a ramya-rao-a added the bug Issue identified by VS Code Team member as probable bug label Aug 3, 2017
@ramya-rao-a ramya-rao-a added this to the July 2017 milestone Aug 3, 2017
@ramya-rao-a
Copy link
Contributor

Apart from the emmet completions, this breaks all emmet commands that are applicable to stylesheets

  • Expand Abbreviation
  • Select Next/Prev item
  • Toggle Comment
  • Update Image Size
  • Reflect CSS Value

@roblourens roblourens added the verified Verification succeeded label Aug 4, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug emmet Emmet related issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

2 participants