executeCommand
Execute a command, sending ^C as necessary to interrupt any running command if needed.
Parameters
The command line to execute, this is the exact text that will be sent to the terminal.
Execute a command, sending ^C as necessary to interrupt any running command if needed.
Note This is not guaranteed to work as shell integration must be activated. Check whether TerminalShellExecution.exitCode is rejected to verify whether it was successful.
Parameters
A command to run.
Arguments to launch the executable with. The arguments will be escaped such that they are interpreted as single arguments when the argument both contains whitespace and does not include any single quote, double quote or backtick characters.
Note that this escaping is not intended to be a security measure, be careful when passing untrusted data to this API as strings like $(...)
can often be used in shells to execute code within a string.