It's not obvious which GitLab accounts are stored in the extension. We also use custom way to log in and log out.
The only way to see the existing accounts currently is to run GitLab: Remove Account from VS Code command and then see the "accounts to remove" in the quick list:
Proposal
VS Code allows us to create many accounts. This wasn't the case just two years ago. When we do create multiple accounts, we'll have a nice overview called the "Account menu"
[error]: Creating `gitlab.com` sessions is no longer supported. It will be implemented again and better in https://gitlab.com/gitlab-org/gitlab-vscode-extension/-/issues/1381 Error: Creating `gitlab.com` sessions is no longer supported. It will be implemented again and better in https://gitlab.com/gitlab-org/gitlab-vscode-extension/-/issues/1381
So the feature is disabled, and we need to wait for an issue opened 4 months ago and with no recent activities?
EDIT: works when we re authenticate on Gitlab Workflow extension (OAuth Method for me)
@remi.flament1@G0maa We probably have a bug in the extension. The error you see was never supposed to be shown to people unless they have an extension that depends on GitLab Workflow for authentication.
Do you have such an extension?
If you see this error during day-to-day work with the GitLab Workflow extension, can you please create a new issue and use the bug template with reproduction steps? I might have made a mistake when implementing the feature. If you show me how to reproduce this error locally, I'll try to fix it
The extension should work fine if you add an account using the GitLab: Authenticate command.
Thank you @G0maa Since this is temporarily deprecating the old session management, maybe it's a one-off error that happens when you re-authenticate. However, I wasn't able to reproduce it locally when I tested the change I'd appreciate any additional information.
I have the same extension Gitlab Workflow. I use it to create, interact and update my MR.
I'm glad this is just a bug, I will try tomorrow at work to re authenticate.
My token expired, and pressing Re-authenticate caused this alert to appear. An easy fix would be to run the gl.authenticate command instead of calling getSession.
@dashaadu@kisha.mavryck FYI I'm reducing the weight 4 -> 2. I found an approach that significantly reduces the complexity of this feature (in my recent POC (video, MR).
@kisha.mavryck@dashaadu This has been released in 5.39.0. now we are integrated with VS Code Authentication API and the account menu works as expected: