vscode-deploy-reloaded
vscode-deploy-reloaded copied to clipboard
Compare: run prepare script
Description
We have prepare script which is modifying its target by setting " values - type env". When deploying, everything works as expected. When we run Compare command, prepare script is not called.
Actual behavior
Compare command don't trigger prepare script.
Expected behavior
Compare command will trigger prepare script.
Steps to reproduce
Example config
{
"deploy.reloaded": {
"values": {
"DEPLOY_IP": {
"type": "env"
}
},
"targets": [
{
"type": "sftp",
"host": "${DEPLOY_IP}",
"prepare":[{
"type": "script",
"script": "getIP.js", // async script will set correct DEPLOY_IP
"onlyWhen": [ "delete", "deploy", "pull" ]
}],
// ... other settings
}
]
}
}
Logs
Screenshot
Your environment
- Operating system: {Win7}
- Visual Studio Code version: {1.26.1}
- Extension version: {v0.84.0}