triggertaskonsave icon indicating copy to clipboard operation
triggertaskonsave copied to clipboard

When opening as workspace, it refuses to activate

Open Ciantic opened this issue 6 years ago • 6 comments

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."

image

Ciantic avatar Mar 14 '19 10:03 Ciantic

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?

Gruntfuggly avatar Mar 14 '19 12:03 Gruntfuggly

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

Ciantic avatar Mar 14 '19 20:03 Ciantic

For me it happens to only some settings, not all: This setting cannot be applied now. It will be applied when you open this folder directly.

rustyx avatar Sep 17 '19 07:09 rustyx

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....

MatzeS avatar Mar 05 '20 16:03 MatzeS

@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.

s1monj avatar Apr 04 '22 23:04 s1monj

Same issue here

soundstep avatar Jul 25 '22 11:07 soundstep