-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
[scss] support interpolation in layer name #180631
[scss] support interpolation in layer name #180631
Comments
#161842 implies this should already be handled. Please check its related issues, and also that extensions you may be using are up to date. |
I don't think I use any extensions that affect syntax highlight. Could it be because I'm using Linux? Just double check on plain CSS, it works now. But for SCSS it doesn't. Can I ask for SCSS support in here since it also got native support from vscode? It also fire error on SCSS variable when I typing. It can only disappear if I close the tab and reopen it. |
@ngdangtu-vn Please paste the small code sample that doesn't work. |
Sure /**
* Cascade Threshold
*/
@mixin module-on($min-width, $layer, $selector)
{
@layer #{$layer}
{
@media screen and (min-width: #{$min-width})
{
#{$selector}
{
@content;
}
}
}
} @import 'https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&display=swap' layer(font); All the error underlines in those code above will display once you modify the code file. If you save it and close then reopen, the error will disappear. (Of course it appears in the Problems panel too) |
No longer errors, verified ✅
@layer bootstrap;
@import url('bootstrap/scss/bootstrap.scss') layer(bootstrap); not being highlighted seems like a syntax highlighting issue... I'll open a new issue for that. |
@aeschli was this accidentally reopened? deferring to microsoft/vscode-css#24 and closing this one on this milestone |
This feature request is about new CSS at-rule call
@layer
. This at-rule can be considerate available for public since it is very close to 90% supported browsers. But the current vscode1.77.3
doesn't support@layer
keyword and constantly fire error every time I use it.Language that needs to support this feature: CSS, SASS/SCSS, LESS
The text was updated successfully, but these errors were encountered: