ritwickdey / vscode-live-sass-compiler

Compile Sass or Scss file to CSS at realtime with live browser reload feature.
https://ritwickdey.github.io/vscode-live-sass-compiler/
MIT License
657 stars 169 forks source link

“Start watching” shouldn’t have to process all existing files #241

Open kokoshneta opened 4 years ago

kokoshneta commented 4 years ago

I started using Live SASS Compiler recently, so most of the projects I use it on already have dozens, if not hundreds of CSS files.

Whenever I click on “Start watching”, I expect Live SASS to start watching for any subsequent SCSS changes I make and save, and then create/overwrite new CSS files based on that – but the first thing that happens is always that everything in the workspace, every single one of those hundreds of SCSS files, gets processed and recompiled, replacing the existing (identical) CSS files.

Since I have CSS files set to auto-deploy on change, that means VSCode spends several minutes using 100% CPU uploading hundreds of files one by one, for absolutely no reason. I keep most of my code in folders that are synced through various cloud services as well, and they also tend to go a bit nuts when hundreds of files are suddenly changed.

Can we please at least have an option in the settings to NOT process existing files every time we start watching?

Christopher-Hayes commented 3 years ago

Hey @kokoshneta, if you're still looking for a solution to this, Glenn is continuing work on this extension in a new repo at: https://github.com/glenn2223/vscode-live-sass-compiler (extension can be found if you search "Live SASS Compiler - Glenn Marks" in VSCode)

I've also had the same problem working on a repo with a ton of SCSS files, and I've created a pull request in the new repo to add a setting called compileOnWatch to toggle that functionality.