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

[Bug] Sass linter wrong errors for Sass each over a map #7538

Closed
luchillo17 opened this issue Jun 10, 2016 · 6 comments
Closed

[Bug] Sass linter wrong errors for Sass each over a map #7538

luchillo17 opened this issue Jun 10, 2016 · 6 comments
Assignees

Comments

@luchillo17
Copy link

  • VSCode Version: 0.1.2
  • OS Version: Mac OSX El Capitan

Steps to Reproduce:

  1. Paste this into a new file with Sass syntax:
@each $color, $hex in $colors {

  .color-#{$color} {
    color: $hex;
  }

  .border-#{$color} {
    border: 1px solid $hex;
    border-radius: 2px;

  }

  @each $side in ('top', 'left', 'right', 'bottom') {
    .border-#{$side}-#{$color} {
      border-#{$side}: 1px solid $hex;
      border-radius: 2px;
    }
  }

  .background-#{$color} {
    background: $hex;
  }
}

Current output:
image

The errors of the linter:
image

@glen-84
Copy link

glen-84 commented Jun 11, 2016

Duplicate of #1758 (?)

@luchillo17
Copy link
Author

Not exactly dup but related, the issue he has is when declaring maps, which i also have (just checked my $colors map), but mine is when using the map with an @each to generate styles, however it's worth mentioning that the base of both is that map syntax is still not supported.

@glen-84
Copy link

glen-84 commented Jun 11, 2016

@Luchillo It might work in the latest insider build, see #7434 (comment).

@luchillo17
Copy link
Author

Ok, but for now i will stick with the style extension mentioned, i'll test when the official release is out.

@aeschli aeschli reopened this Jun 12, 2016
@aeschli
Copy link
Contributor

aeschli commented Jun 12, 2016

Sorry, there hasn't been any work on SCSS map support yet.

@aeschli
Copy link
Contributor

aeschli commented Jun 15, 2016

Duplicate of #1758

@aeschli aeschli closed this as completed Jun 15, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants