Skip to content
Snippets Groups Projects

feat: show all accounts in VS Code accounts view

Merged Tomas Vik requested to merge tv/2025-02/use-authentication-api into main
All threads resolved!

Description

This MR changes the authentication provider so that we can provide VS Code with all extension accounts (in all instances, both OAuth and PAT).

This MR also adds reactivity, so that when you sign out, the account gets removed from the list.

before after
image image
Only OAuth token is shown for gitlab.com All GitLab accounts are shown

Also, the sign-out command did not update the list of accounts. I.e. signing out didn't remove the account from the list of accounts

before after
sign-out-not-working sign-out-working

In the same way, authenticating using OAuth didn't add the account to the list. (The list was only updated once the extension started.)

Related Issues

Resolves #1381 (closed)

How has this been tested?

  1. Add OAuht and PAT accounts to the extension (using the Gitlab: Authenticate command)
  2. see that both accounts are in the account menu (see screencasts and screenshots above
  3. validate that when you sign out from the account, it disappears from the list

What CHANGELOG entry will this MR create?

  • fix: Bug fix fixes - a user-facing issue in production - included in changelog
  • feature: New feature - a user-facing change which adds functionality - included in changelog
  • BREAKING CHANGE: (fix or feature that would cause existing functionality to change) - should bump major version, mentioned in the changelog
  • None - other non-user-facing changes
Edited by Tomas Vik

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Tomas Vik requested review from @ohoral

    requested review from @ohoral

  • Olena Horal-Koretska
  • Olena Horal-Koretska
  • Olena Horal-Koretska approved this merge request

    approved this merge request

  • Olena Horal-Koretska changed milestone to %17.9

    changed milestone to %17.9

  • Tomas Vik added 2 commits

    added 2 commits

    • 7650bb06 - refactor: use dash to separate username and instance
    • 64c732ac - refactor: use lodash differenceBy

    Compare with previous version

  • Tomas Vik mentioned in issue #1816

    mentioned in issue #1816

  • Tomas Vik resolved all threads

    resolved all threads

  • Tomas Vik enabled automatic add to merge train when checks pass

    enabled automatic add to merge train when checks pass

  • Olena Horal-Koretska resolved all threads

    resolved all threads

  • Tomas Vik aborted automatic add to merge train because the source branch was updated. Learn more.

    aborted automatic add to merge train because the source branch was updated. Learn more.

  • Tomas Vik added 9 commits

    added 9 commits

    • 64c732ac...66b6410b - 6 commits from branch main
    • d7ae6490 - feat: show all accounts in VS Code accounts view
    • dc5897c6 - refactor: use dash to separate username and instance
    • 7093485a - refactor: use lodash differenceBy

    Compare with previous version

  • Tomas Vik enabled automatic add to merge train when checks pass

    enabled automatic add to merge train when checks pass

  • merged

  • Tomas Vik mentioned in commit 3aa8c648

    mentioned in commit 3aa8c648

  • :tada: This MR is included in version 5.39.0 :tada:

    The release is available on:

    Your semantic-release bot :package: :rocket:

  • Please register or sign in to reply
    Loading