Command output re-direction

ndjurov
Posts: 65
Joined: Wed Mar 25, 2020 11:34 pm

Command output re-direction

Postby ndjurov » Wed Dec 01, 2021 3:11 am

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?

ESP_bignacio
Posts: 229
Joined: Wed May 02, 2018 12:12 pm

Re: Command output re-direction

Postby ESP_bignacio » Wed Dec 01, 2021 8:34 am

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

ndjurov
Posts: 65
Joined: Wed Mar 25, 2020 11:34 pm

Re: Command output re-direction

Postby ndjurov » Wed Dec 01, 2021 3:49 pm

Thanks a lot.

Who is online

Users browsing this forum: No registered users and 19 guests