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

False positive when using interpolation inside custom at-rule in scss #419

Open
wldhg opened this issue Dec 21, 2024 · 0 comments
Open

False positive when using interpolation inside custom at-rule in scss #419

wldhg opened this issue Dec 21, 2024 · 0 comments

Comments

@wldhg
Copy link

wldhg commented Dec 21, 2024

Below code raises "at-rule or selector expected scss(css-ruleorselectorexpected)" error.

This was observed not only in the stable build I was using but also in the latest insiders build (1.97.0-insider clean installation) that I installed separately for verification.

Image

Is this the intended behavior?

Example Code

styles.scss

$base: 16px;

.container {
  @custom {
    --a-variable: #{90 * $base};
  }
}
// ^- at-rule or selector expectedscss(css-ruleorselectorexpected)

.vscode/settings.json

{
  "css.customData": [
    ".vscode/custom.css-data.json"
  ]
}

.vscode/custom.css-data.json

{
  "version": 1.1,
  "atDirectives": [
    {
      "name": "@custom"
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant