triggertaskonsave
triggertaskonsave copied to clipboard
When opening as workspace, it refuses to activate
If you have Workspace with multiple folders, and the settings.json for a one the folder contains the triggerTaskOnSave it says:
"This setting cannot be applied now. It will be applied when you open this folder directly."

I'm not completely sure what is going on there - it's not part of the extension.
I found this, though: https://github.com/ritwickdey/vscode-live-sass-compiler/issues/31 which might help?
Have you tried the workspaces? The workspaces require support from the extension. Since more than one folder is open at the same time.
E.g. https://github.com/Gruntfuggly/triggertaskonsave/blob/master/package.json#L49 this I believe needs a new property "scope" as defined in here: https://github.com/Microsoft/vscode/wiki/Adopting-Multi-Root-Workspace-APIs#settings-configuration
For me it happens to only some settings, not all:

It depends on how you open the workspace, resp. not open it.
In the menu bar under File you can either -> Open Folder or -> Open Workspace.
It works only with Open Folder (for example say we open ~/folder), where settings.json is placed at ~/folder/.vscode/settings.json.
Using a workspace file did not work for me....
@Gruntfuggly thanks for you work on this. I also had this issue and when I followed MatzeS post above it all worked - would be great to have this as a note at the top of the README for others.
Same issue here