VS Code (single account): Hide the status bar account indicator when there's only one account

Problem to solve

Status bar space is precious, maybe the status bar indicator showing the name of the current user doesn't provide enough value if there is only one GitLab account added to the extension.

image

It also has already has shown to cause confusion as there can be a conflict between the Duo icon and the icon from this feature:

Oddly one indicates Duo is working and tells me my user, the other says Duo is not available.

Proposal

  1. Hide account indicator when only one account is linked
    1. Given there is only one GitLab account linked to the extension
    2. When the user opens VS Code
    3. Then the status bar should not display the account indicator
  2. Display account indicator when multiple accounts are linked
    1. Given there are multiple GitLab accounts linked to the extension
    2. When the user opens VS Code
    3. Then the status bar should display the account indicator (current state)
  3. Hide account indicator when no accounts are linked
    1. Given there are no GitLab accounts linked to the extension
    2. When the user opens VS Code
    3. Then the status bar should not display the account indicator
      1. Change from current state where we show No GitLab Account - Click to authenticate
  4. Notify the user about the hidden account indicator.
    1. Given there is only one GitLab account linked to the extension
    2. Then the user should receive a notification explaining the absence of the account indicator
    3. And is only shown it once
Edited by Dasha Adushkina