Skip to content

Unnecessary extra Terminal in IDE #6186

Closed
@jankeromnes

Description

@jankeromnes

Bug description

When your .gitpod.yml implements a certain number of tasks, there is now always an extra Terminal open in VS Code.

For example, the Gitpod repository specifies three tasks (also known as Terminals):

gitpod/.gitpod.yml

Lines 38 to 46 in 9d4bfb5

tasks:
- name: Java
init: leeway exec --package components/supervisor-api/java:lib --package components/gitpod-protocol/java:lib -- ./gradlew jar
- name: TypeScript
before: scripts/branch-namespace.sh
init: yarn --network-timeout 100000 && yarn build
- name: Go
init: leeway exec --filter-type go -v -- go mod verify
openMode: split-right

However, when opening Gitpod in Gitpod, we observe four Terminals (the top-most one is empty):

Screenshot 2021-10-13 at 10 35 06

Screenshot 2021-10-13 at 10 35 18

Steps to reproduce

  1. Open https://gitpod.io/#https://github.com/gitpod-io/gitpod
  2. Count the number of Terminals open in VS Code

Workspace affected

No response

Expected behavior

There shouldn't be an unnecessary extra empty Terminal open in VS Code:

  • Either we re-use the first empty Terminal for the first task
  • Or we close the first empty Terminal when there are tasks in .gitpod.yml

(Note: It is fine to have an empty Terminal open by default when there are no tasks in .gitpod.yml)

Example repository

https://github.com/gitpod-io/gitpod

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions