[gp-cli] Display the Gitpod Task ID instead of the Working Directory of the running task #9620
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Display the Gitpod Task ID instead of the Working Directory of the running task, on the list from
gp tasks attach
command.To avoid confusion when more than two tasks are running in the same directory and haven't been named on .gitpod.yml.
Taking Phaser's .gitpod.yml config as example, which contains two tasks without the
name
property set:When user opens Phaser's repo now, the terminal shows:
This PR changes it to be displayed as the following:
Here's how terminal names are displayed on VS Code Terminal now:
And
gp tasks lists
output is displayed like this:Related Issue(s)
None.
How to test
Gitpod Task <ID>
whengp tasks attach
is executed.gp tasks attach
is executed automatically during the Welcome Message on JetBrains IDEs Terminals, that's what you see on the screenshots from the description of this PR.Release Notes
Documentation
None.