Raathigesh / fabulous

🎨 CSS properties sidebar for VS Code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SCSS Support

panckreous opened this issue · comments

commented

If it's possible to eventually extend support to Sass and SCSS well, that would just make this even more amazing.

Scss is already support as written in the Readme at the third point of supported files, i think sass is not that difficult to adapt so I think it will be released soon

@Tchekda is right. SCSS is already supported. My immediate focus is to enhance the current functionality so I won't be focusing on SASS anytime soon. That being said, I'm more than happy to help if you want to contribute SASS support. We use Postcss as the parser and if they support SASS, then we should be able to integrate it fairly easily.

From what I can see, this should be supported. We would need to add in the postcssSass syntax, then update css-file.ts to choose sass based on the languageId provided based on the filetype.

This would be really easy to implement from a parsing perspective, but I don't know if there are other considerations about updating SASS as compared to CSS and SCSS.

https://github.com/AleshaOleg/postcss-sass

var postcssSass = require("postcss-sass");

postcss(plugins).process(sass, { syntax: postcssSass }).then(function (result) {
    result.content // Sass with transformations
});