Upon executing a task (cargo build in this case), the following appears in the VSCode terminal:
> Executing task: cargo build <
(output of the task he
An alternative solution is to set the output window to auto-focus.
Add this to the task definition:
"presentation": {
"focus": true
}
Then it's not that annoying anymore because you can dismiss the compiler output with a single key press.
The benefit of this is that the task output is visible, so you can see if there were any errors or warnings.