emeraldwalk / vscode-runonsave

Visual Studio Code extension to run commands whenever a file is saved.
Apache License 2.0
182 stars 57 forks source link

${workspaceFolder} == "\" #34

Open mykola-shkut opened 5 years ago

mykola-shkut commented 5 years ago

in docs ${workspaceFolder}: the path of the workspace folder of the saved file

on windows 10 if I put configs { "match": ".*\.scss$", "command": "dir && cd ${workspaceFolder} && dir", "runIn": "backend", "runningStatusMessage": "Compiling ${fileBasename}", "finishStatusMessage": "${fileBasename} compiled" }

I get Running "dir && cd \ && dir" Volume in drive C has no label. Volume Serial Number is 72ED-B5C7

Directory of C:\Users\[myUserName]\AppData\Local\Programs\Microsoft VS Code ....

start of vs code folder and ${workspaceFolder} == "\"

how can I run command from workspace directory?

bmingles commented 4 years ago

Are you in an actual workspace or just in a folder?