[Feature request] Run exe
Is your feature request related to a problem? Please describe. When right clicking in explorer make possible to run an *.exe.
Describe the solution you'd like "exe": { "windows": "& './$fileName'", "linux": "'./$fileName'", "osx": "'./$fileName'" }
"code-runner.executorMap": { "code-text-binary": ".\$fileName",
~~already available~~ ~~make sure vscode views your .exe files as code-text-binary~~
ok, you are right, if the file is open it will run, but seems like it won't run from the menu
might add this to my fork
In fact, I found an extension called "exe runner." However, it would be a good thing to have this logical feature in Code Runner itself.
Another thing I've noticed: when a script is already running and you click the Code Runner button again, nothing happens. It would be really useful to have an option to automatically kill the current process before starting a new one. Maybe with a short debounce timer (300-500ms) to prevent accidental spam from multiple clicks. I tried adding process killing logic directly in my scripts, but it doesn't work with Code Runner since the button has no effect when a process is already running - the code never executes. I know other VSCode extensions (especially AI-powered ones) can kill running processes, so this should be technically feasible. Having this as an optional setting would be a great improvement for development workflows that require frequent script restarts.
- killing process is easy to do
- no clue about the exe file issue, will have to look into that other extension