VSCode Extension Development: Send Command to Terminal without entering textย #201680
Closed
Description
opened on Jan 2, 2024
At this moment I can run a command in the terminal by sending text (terminal.sendText()
) to it. Now I would like to run a command without displaying the command, but only its output, like I can do with NPM scripts.
For example when echo
ing in color or basically any command. I'd rather output custom logs, such as:
- Starting script..
- Completed step 1
- Completed step 2
- Done (In green color)
Instead of:
echo -e '\x1b[32mOpen terminal\x1b[0m'
Open terminal
(in green color)
I would propose:
terminal.sendCommand( command: string, showInput?: boolean )
terminal.sendOutput( text: string, color?: Color )
Activity