mkloubert / vs-deploy

Visual Studio Code extension that provides commands to deploy files of a workspace to a destination.
https://marketplace.visualstudio.com/items?itemName=mkloubert.vs-deploy
MIT License
131 stars 24 forks source link

Skip prompt for target each time when deploying a file #136

Open werecougar opened 6 years ago

werecougar commented 6 years ago

I've set up a "target switch" and would like to skip the prompt "select the target to deploy to" each time I deploy a file. This would be my preferred workflow:

  1. Select the target I'm going to deploy to first.
  2. Deploy a file without any prompt. (use the currently-selected target)
  3. Do some more edits to the file.
  4. Repeat steps 2, 3 etc.

Is this possible?

mkloubert commented 6 years ago

@werecougar

Can you post an example of your config?

werecougar commented 6 years ago

"deploy": { "showPopupOnSuccess": false, "alwaysShowTargetList": false, "targets": [ { "name": "Target", "type": "switch", "options": [ { "name": "site1.vreedev.com", "targets": "site1.vreedev.com" }, { "name": "site2.vreedev.com", "targets": "site2.vreedev.com" }, { "name": "site3.vreedev.com", "targets": "site3.vreedev.com" } ], "button": { "color": "#ffff00", "text": "${selectedSwitch}: ${selectedSwitchOption}", "tooltip": "Click here to change the current option of that switch..." } }, { "type": "sftp", "name": "site1.vreedev.com", ... }, { "type": "sftp", "name": "site2.vreedev.com", ... }, { "type": "sftp", "name": "site3.vreedev.com", ... }

    ]
}