-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Sass Live Compiler extension is not compiling file after it is changed via chrome dev tool #306
Comments
Sorry for the delay, not been felling too well. Also, I'm afraid that I'm not quite following your environment setup.
Sorry, without knowing your environment and file setup it's pretty difficult to help. Whatever the case, it sounds like - however you're editing the file - it's not triggering the |
Chrome version 115.0.5790.171 default settings 12-26-11.mp4 |
So it looks like you're using Live Server. You should apply your changes in VS Code and it will then apply them to your live preview. There shouldn't be any need to edit a SASS file in the dev tools. However, if this is something you require then you'd have to raise this issue with VS Code highlighting that As this is an issue with VS Code I'm afraid that it's out of scope for this project |
OK thanks for answer, I didnt know that it is problem of VSCode.....Have a nice day. |
Not a problem, I'll close this off for now as out of scope |
If the file is not saved through VS Code, you don't get a |
So then it looks like issue of Sass Live Compiler extension? |
Thanks for the info, didn't realise. Work on a fix now |
@aeschli, just wondering how you'd implement this as every character added is triggering Even saving the file triggers the event - which is, obviously, duplicating the event on normal text editing. I have no problem removing the Surely just saving the file in dev tools could trigger the "onDidSave..." event? VS Code is clearly already watching the files and could trigger the save event if the date modified changes?? 🤷 |
Well, out language servers do that, as they want to generated diagnostics also for the unsaved document content and tell the user about compile errors before saving. It's always done with a delay so validation only happens when the user has stopped typing. If all you are only interested in on what's on disk, then use a file watcher ( |
Okay, interesting... so pass errors back to VSCode to display to the user before they save. Will take a look into this
Yeah, this and other things make me think I should move fully over to VSCode's filesystem and watcher Thanks for all the input @aeschli, it's really helpful!! |
I ran into this as well. Here's a workaround: 1.) Disable the watching of file changes within SASS Live Compiler
This assumes that you have installed sass CLI system-wide. If not, run "brew install sass" first. Now, after relaunching VSCode it will launch the task in a terminal. Personally i found the spinner that shows up there very distracting, so i created a bash script instead: ./runsass:
And updated my tasks.json:
It would be amazing if the developer could look into this matter. Using DevTools Sources tab to edit scss files is very common and not having the compiler trigger in such a case is quite a handicap. Needless to say: great extension! Thank you for maintaining it. |
hello I am using VS Code with your extension Sass Live Compiler. When I change .scss file via Chome dev tool, the file did change in VSCode, and I checked that it is saved on disk with new data, BUT extension Sass Live Compile dont compile it until I manualy save the .scss file again, or until I make som change in file.
I have set ON the AUTO SAVE in VSCode. Can somebody help ? Thanks
The text was updated successfully, but these errors were encountered: