pucelle / vscode-run-on-save

Run configured shell commands when a file is saved in vscode, and output configured messages on status bar.
https://marketplace.visualstudio.com/items?itemName=pucelle.run-on-save
MIT License
51 stars 14 forks source link

configure shell #3

Closed korkorran closed 4 years ago

korkorran commented 5 years ago

Hi, the extension cannot work on my windows 10 system. the extension use powershell by default, and the commands in my settings are not. Is there a way to configure the shell ? Thank you in advance

Note that I set the command in the "backend" RunIn mode.

pucelle commented 5 years ago

Hi, fredlnl , Thanks for your feedback and sorry to reply you late since I'm busy at working these days.

The plugin run backend command nearly equals to run it in the windows cmd, so can you test your command in the windows cmd to see if it working. if it doesn't work, can you provide what your commands like? Is there some Environment Variables it requires?

Thanks.

korkorran commented 5 years ago

In the first hand, it works well, thank you. I could test my scripts on windows cmd.

Last, i use git-bash on windows, and it is my default terminal on VS code. Could Run-on-save bind to it ? Thanks again,

BitFis commented 4 years ago

First of, love the addon, the other run-on-save addon has a configurable shell. Would that solve this issue @Fredestrik?

I could use a feature like that to run tests in screen or tmux on linux so I can see the command output in an other panel aswell. @pucelle you think such a feature is welcome in the plugin?

cheers

pucelle commented 4 years ago

I just merged the request from BitFis and publish the version 1.2.1. Thanks BitFis again and sorry for don't having much time to work on it...