Skip to content
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

Limit task output to most recent task only #44142

Closed
akbyrd opened this issue Feb 21, 2018 · 9 comments
Closed

Limit task output to most recent task only #44142

akbyrd opened this issue Feb 21, 2018 · 9 comments
Assignees
Labels
feature-request Request for new features or functionality tasks Task system issues
Milestone

Comments

@akbyrd
Copy link
Contributor

akbyrd commented Feb 21, 2018

Issue Type

Feature Request

Description

I'd like the task output to 1) never show output from more than one task, and 2) not create a new terminal instance panel each time.

Using the "new" option ensures I'm only ever looking at the output for one task, but then I end up with a new terminal instance for every task run.

Using the "shared" option is closest to what I want, but it's rarely/never useful to me to be able to scroll up and see the output from the previous build. In fact, it gets in the way quite often as I scroll up too far and don't realize I'm looking at old task output, not the current task.

Ideally, I'd like the shared option, but have it clear the terminal each time. Adding 'cls' to the batch script I use to build doesn't clear the terminal instance panel.

VS Code Info

VS Code version: Code 1.20.1 (f88bbf9, 2018-02-13T15:34:36.336Z)
OS version: Windows_NT x64 10.0.16299

@vscodebot
Copy link

vscodebot bot commented Feb 21, 2018

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@vscodebot vscodebot bot added the tasks Task system issues label Feb 21, 2018
@dbaeumer dbaeumer added the feature-request Request for new features or functionality label Feb 22, 2018
@dbaeumer dbaeumer added this to the Backlog milestone Feb 22, 2018
@dbaeumer
Copy link
Member

I can add an options to clear the terminal output, however we will not be able to share a terminal over two runs. The reason is that we couldn't find a way to determine whether a terminal is idle or not. So we don't know when a task has finished.

@akbyrd
Copy link
Contributor Author

akbyrd commented Feb 22, 2018

I can add an options to clear the terminal output,

Perfect, thanks!

however we will not be able to share a terminal over two runs

Wait, this is what VSCode already does with presentation.panel = shared.

Are we thinking of different behaviors when we say 'share a terminal'? In my case, I'm referring to the way the shared option doesn't create a new 'tab' in that drop down menu on the top right of the Terminal.

task output

@dbaeumer
Copy link
Member

The option shared shares the panel not the underlying terminal process. So yes, the panel can be shared the underlying terminal process which runs the task is not shared. So if you execute two tasks in a row then the create two terminal processes which both present their output in the same panel.

@akbyrd
Copy link
Contributor Author

akbyrd commented Feb 23, 2018

Gotcha. I was referring to the ability to share the panel. I've updated to original wording to reflect that more accurately.

@BrianHarris
Copy link

This should be supported with "panel": "dedicated" too.

@alexr00
Copy link
Member

alexr00 commented Oct 22, 2018

@akbyrd, does #61329 solve this for you?

@akbyrd
Copy link
Contributor Author

akbyrd commented Oct 22, 2018

Yea, I think that will solve my problem nicely. Thank you!

@alexr00
Copy link
Member

alexr00 commented Oct 23, 2018

Duplicate of #30058

@alexr00 alexr00 marked this as a duplicate of #30058 Oct 23, 2018
@alexr00 alexr00 closed this as completed Oct 23, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality tasks Task system issues
Projects
None yet
Development

No branches or pull requests

4 participants