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

Bash command being appended to open file #12

Closed timsayshey closed 5 years ago

timsayshey commented 7 years ago

Here are my settings: // Place your settings in this file to overwrite the default settings { "saveAndRun": { "commands": [ { "match": ".go", "cmd": "echodate${srcFile} > ./context/.build" } ] } }

It rebuilds my Docker container on save. But RunOnSave will randomly append "echo date ${srcFile} > ./context/.build" to my open file.

bmingles commented 7 years ago

Sorry for the late response on this. It looks like you are using an invalid placeholder ${srcFile}. See https://github.com/emeraldwalk/vscode-runonsave#placeholder-tokens for supported placeholders.