-
Notifications
You must be signed in to change notification settings - Fork 30.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Allow automatic clear of output window before running task #19510
Comments
@dbaeumer Any update on this? |
This got partly addressed with the new terminal runner which support a presentation property that lets you control the panel usages. For example "presentation": {
"panel": "new"
}, which creates a new panel for every run (but it doesn't automatically clear /close and old one). The story forward is to use the terminal runner not the old output runner. If you think there is something missing for you please open a new issue. I will close this one since no work is planned to support new features in the output runner. |
How do we use the "terminal runner" and get the output cleared at the start of running a task? |
June release notes or https://code.visualstudio.com/docs/editor/tasks#_convert-from-010-to-200 |
I have already converted to "version": "2.0.0", but had not added "runner": "terminal". After adding this my existing tasks (or at least one of them) seem to be working
What new can I now do?
BTW: I'm using an external batch file to beep at the end of the build, so I don't have to watch the long builds:
I get three beeps if it fails and one if it succeeds. |
The cls trick doesn't work. You get a fresh console process anyways, however in the UI by default we append the output unless you create a new panel on every run. |
I don't want to create a new panel each run as I would end with a lot of panels to delete. Is there any way of clearing the panel (i.e the equivalent of Terminal Clear) when the build starts? |
No, but there is a feature request for it here: #30058 |
Steps to Reproduce:
Expected behaviour: Output window is cleared before starting the task so it easier to see the results of the current task. This should be a configurable option. Probably a global one plus a per task one.
The text was updated successfully, but these errors were encountered: