Page 1 of 1

Command output re-direction

Posted: Wed Dec 01, 2021 3:11 am
by ndjurov
If I understand correctly, there are two ways to run a command (build, clean, monitor etc.) in the VS Code - either from a built-in "Run Task" option in the VS Code "Terminal" menu, where a command is defined in tasks.json and/or from the ESP-IDF extension menu in the VS Code status bar. It is easy to edit tasks.json in order to re-direct output of a command to a file, but I don't see a way to do the same for commands started from the ESP-IDF status bar.
Is there a tasks.json equivalent configuration file for the ESP-IDF extension?

Re: Command output re-direction

Posted: Wed Dec 01, 2021 8:34 am
by ESP_bignacio
The 2 ways you mentioned are the tasks.json tasks and the extension command. The build command from status bar is implemented in the extension source code therefore not easily customized compared to a tasks.json defined tasks.

You could create an issue for such feature request in the extension if you would like to see the build command to redirect the output.

https://github.com/espressif/vscode-esp ... new/choose

Re: Command output re-direction

Posted: Wed Dec 01, 2021 3:49 pm
by ndjurov
Thanks a lot.