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

[vscode] support TaskPresentationOptions close #12749

Merged
merged 1 commit into from
Jul 25, 2023

Conversation

rschnekenbu
Copy link
Contributor

What it does

Adds the close property to TaskPresentationOptions
This enables the possibility to close the terminal once the task is finished.

Fixes #12611

Contributed on behalf of ST Microelectronics

How to test

  1. Install following extension:
  1. Copy the content of this archive at the root of your workspace:
    workspace-test.zip. It contains several tasks that can be identified by the sample extension. In the extension, the build tasks are supposed to close the terminal after the task is finished (close set to true) whereas the terminal should remain on completion for other tasks like test tasks.

  2. On master theia, the terminal always remain after the tasks are finished (this is also the default behavior after the patch when close is not defined.). The extension is written so the tasks are configured differently if they are build tasks or any other kind of tasks. This does not do any difference on master, as the close property is not known.
    12611-before

  3. Switch to this PR and run the same tests. The terminal will close for the build tasks, and remain open for reuse for the other tasks like test tasks.
    12611-after

Review checklist

Reminder for reviewers

@rschnekenbu rschnekenbu changed the title Issues/12611 [vscode] support TaskPresentationOptions close Jul 24, 2023
@rschnekenbu rschnekenbu marked this pull request as ready for review July 24, 2023 12:23
@tsmaeder tsmaeder self-requested a review July 25, 2023 08:35
@tsmaeder
Copy link
Contributor

@rschnekenbu could you resolve the conflict, please?

@rschnekenbu
Copy link
Contributor Author

@tsmaeder, sure!

* Adds close to the TaskPresentationOptions
* Checks when task is finished if terminal shall be closed

Contributed on behalf of STMicroelectronics
Copy link
Contributor

@tsmaeder tsmaeder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Was able to test after installing ruby/rake.

@tsmaeder
Copy link
Contributor

Let's wait for the tests to finish before we merge.

@tsmaeder tsmaeder merged commit 640baa8 into eclipse-theia:master Jul 25, 2023
@vince-fugnitto vince-fugnitto added this to the 1.40.0 milestone Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[vscode] Support TaskPresentationOptions#close property
3 participants